dependabot-opentofu 0.390.0 → 0.391.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/dependabot/opentofu/file_parser.rb +4 -7
- data/lib/dependabot/opentofu/package/package_details_fetcher.rb +1 -4
- data/lib/dependabot/opentofu/registry_client.rb +2 -8
- data/lib/dependabot/opentofu/requirements_updater.rb +2 -1
- data/lib/dependabot/opentofu/update_checker/latest_version_resolver.rb +1 -4
- data/lib/dependabot/opentofu/update_checker.rb +1 -4
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ef485a1857c80dad66ce7897a5f7c8cef0f5fd58dc8b5023933394a692b035e2
|
|
4
|
+
data.tar.gz: c8a108c5acc1505e541165c61471af2974b83d4ad86b1bd95fdcea4c9905a4d6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a00e9fea4c9f10fe0acffb8803ed8f135c5c86c6bd1b398baada2bb1e2c0e4b24bc74def7292f3e611f5bb7974fe6782b5daabc7838bde6106bb926b780e054b
|
|
7
|
+
data.tar.gz: e9ca2a44c33d9296e118433f87f9b47103a492a067cd5e21688e1ca6962eb1f2a556a3458638b589b0c3f22e4404fb88e2a976acc52da817d7105bfc7dff5897
|
|
@@ -35,13 +35,10 @@ module Dependabot
|
|
|
35
35
|
# binary. Providers in these namespaces cannot be updated independently
|
|
36
36
|
# because their version tracks the binary itself.
|
|
37
37
|
# See: https://pkg.go.dev/github.com/opentofu/registry-address/v2#Provider.IsBuiltIn
|
|
38
|
-
BUILTIN_PROVIDER_NAMESPACES =
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
).freeze,
|
|
43
|
-
T::Array[String]
|
|
44
|
-
)
|
|
38
|
+
BUILTIN_PROVIDER_NAMESPACES = %w(
|
|
39
|
+
terraform.io/builtin
|
|
40
|
+
opentofu.org/builtin
|
|
41
|
+
).freeze
|
|
45
42
|
|
|
46
43
|
sig { override.returns(T::Array[Dependabot::Dependency]) }
|
|
47
44
|
def parse
|
|
@@ -20,10 +20,7 @@ module Dependabot
|
|
|
20
20
|
# https://api.opentofu.org/registry/docs/providers/hashicorp/aws/index.json
|
|
21
21
|
# https://api.opentofu.org/registry/docs/modules/hashicorp/consul/aws/index.json
|
|
22
22
|
|
|
23
|
-
ELIGIBLE_SOURCE_TYPES =
|
|
24
|
-
%w(git provider registry).freeze,
|
|
25
|
-
T::Array[String]
|
|
26
|
-
)
|
|
23
|
+
ELIGIBLE_SOURCE_TYPES = %w(git provider registry).freeze
|
|
27
24
|
|
|
28
25
|
sig do
|
|
29
26
|
params(
|
|
@@ -19,19 +19,13 @@ module Dependabot
|
|
|
19
19
|
|
|
20
20
|
# Archive extensions supported by OpenTofu for HTTP URLs
|
|
21
21
|
# https://opentofu.org/docs/language/modules/sources/#http-urls
|
|
22
|
-
ARCHIVE_EXTENSIONS =
|
|
23
|
-
%w(.zip .bz2 .tar.bz2 .tar.tbz2 .tbz2 .gz .tar.gz .tgz .xz .tar.xz .txz).freeze,
|
|
24
|
-
T::Array[String]
|
|
25
|
-
)
|
|
22
|
+
ARCHIVE_EXTENSIONS = %w(.zip .bz2 .tar.bz2 .tar.tbz2 .tbz2 .gz .tar.gz .tgz .xz .tar.xz .txz).freeze
|
|
26
23
|
PUBLIC_HOSTNAME = "registry.opentofu.org"
|
|
27
24
|
API_BASE_URL = "api.opentofu.org"
|
|
28
25
|
|
|
29
26
|
# The OpenTofu Module Registry HTTP API is wire-compatible with Terraform's,
|
|
30
27
|
# so credentials issued for either ecosystem are valid here.
|
|
31
|
-
ACCEPTED_CREDENTIAL_TYPES =
|
|
32
|
-
%w(opentofu_registry terraform_registry).freeze,
|
|
33
|
-
T::Array[String]
|
|
34
|
-
)
|
|
28
|
+
ACCEPTED_CREDENTIAL_TYPES = %w(opentofu_registry terraform_registry).freeze
|
|
35
29
|
|
|
36
30
|
sig { params(hostname: String, credentials: T::Array[Dependabot::Credential]).void }
|
|
37
31
|
def initialize(hostname: PUBLIC_HOSTNAME, credentials: [])
|
|
@@ -141,7 +141,8 @@ module Dependabot
|
|
|
141
141
|
return req if ruby_req.satisfied_by?(latest)
|
|
142
142
|
|
|
143
143
|
new_req =
|
|
144
|
-
if ruby_req.exact?
|
|
144
|
+
if ruby_req.exact?
|
|
145
|
+
latest.to_s
|
|
145
146
|
elsif string_req.start_with?("~>")
|
|
146
147
|
update_twiddle_version(string_req).to_s
|
|
147
148
|
else
|
|
@@ -26,10 +26,7 @@ module Dependabot
|
|
|
26
26
|
@dependency = dependency
|
|
27
27
|
@credentials = credentials
|
|
28
28
|
@cooldown_options = cooldown_options
|
|
29
|
-
@git_commit_checker =
|
|
30
|
-
git_commit_checker,
|
|
31
|
-
Dependabot::GitCommitChecker
|
|
32
|
-
)
|
|
29
|
+
@git_commit_checker = git_commit_checker
|
|
33
30
|
end
|
|
34
31
|
|
|
35
32
|
sig { returns(Dependabot::Dependency) }
|
|
@@ -18,10 +18,7 @@ module Dependabot
|
|
|
18
18
|
|
|
19
19
|
require_relative "update_checker/latest_version_resolver"
|
|
20
20
|
|
|
21
|
-
ELIGIBLE_SOURCE_TYPES =
|
|
22
|
-
%w(git provider registry oci).freeze,
|
|
23
|
-
T::Array[String]
|
|
24
|
-
)
|
|
21
|
+
ELIGIBLE_SOURCE_TYPES = %w(git provider registry oci).freeze
|
|
25
22
|
|
|
26
23
|
sig { override.returns(T.nilable(T.any(String, Gem::Version))) }
|
|
27
24
|
def latest_version
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dependabot-opentofu
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.391.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dependabot
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - '='
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 0.
|
|
18
|
+
version: 0.391.0
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - '='
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 0.
|
|
25
|
+
version: 0.391.0
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: debug
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -262,7 +262,7 @@ licenses:
|
|
|
262
262
|
- MIT
|
|
263
263
|
metadata:
|
|
264
264
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
|
265
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
|
265
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.391.0
|
|
266
266
|
rdoc_options: []
|
|
267
267
|
require_paths:
|
|
268
268
|
- lib
|