dependabot-go_modules 0.232.0 → 0.234.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cbdc553e7016ca8bb87f0f3304718c034d3ef75176c8483e1903b976a8f1a000
4
- data.tar.gz: 8a5b0fa38bdac8462d0402a2858406ccc714acfc76aaf71b7e0c3e7c505c8b4f
3
+ metadata.gz: 89ed000c9be51fabe284d8237d25a11c72e809fc00260cfd70533825dd794f64
4
+ data.tar.gz: 3aa254a1630cac0a3dafb2ac5998365efc5b451f2fdcf6fe2c00c9ac103a6479
5
5
  SHA512:
6
- metadata.gz: b2f31915843e22e8093f716e19849abb84469fc1d7527743de2b12d6da8dde38525e726425b072c686980b73ce1c3885bfd8fb27d823d1ec47b7d68bb9fd3110
7
- data.tar.gz: f92c990b6d06d6f3dcca5042df88e1574e0bbad04a791862735f30a60b295941ceb86f34073e62a4f543738774f4ed4c0c993f0ec7f80f832699c6205c257c0a
6
+ metadata.gz: 1f3b2829d69d152740504092b389ddb0ab5b2c3ee1b7232f9312ab913e0737a0ac917e6b9f1178d1fd992b9802f49c461742473c6a95f39513663f10b9890701
7
+ data.tar.gz: af79d8f201bd1f701c982f9aeefa47c64779a9ba9d9912bdcd9b770e09d89007cc62b730deb08b9c82cc6c354f8290b8ff61c0b79c025d95e36ca4e356b8b43b
@@ -9,11 +9,14 @@ require "dependabot/go_modules/replace_stubber"
9
9
  require "dependabot/errors"
10
10
  require "dependabot/file_parsers"
11
11
  require "dependabot/file_parsers/base"
12
+ require "dependabot/go_modules/version"
12
13
 
13
14
  module Dependabot
14
15
  module GoModules
15
16
  class FileParser < Dependabot::FileParsers::Base
16
17
  def parse
18
+ set_gotoolchain_env
19
+
17
20
  dependency_set = Dependabot::FileParsers::Base::DependencySet.new
18
21
 
19
22
  required_packages.each do |dep|
@@ -25,6 +28,19 @@ module Dependabot
25
28
 
26
29
  private
27
30
 
31
+ # set GOTOOLCHAIN=local if go version >= 1.21
32
+ def set_gotoolchain_env
33
+ go_directive = go_mod.content.match(/^go\s(\d+\.\d+)/)&.captures&.first
34
+ return ENV["GOTOOLCHAIN"] = ENV.fetch("GO_LEGACY") unless go_directive
35
+
36
+ go_version = Dependabot::GoModules::Version.new(go_directive)
37
+ ENV["GOTOOLCHAIN"] = if go_version >= "1.21"
38
+ "local"
39
+ else
40
+ ENV.fetch("GO_LEGACY")
41
+ end
42
+ end
43
+
28
44
  def go_mod
29
45
  @go_mod ||= get_original_file("go.mod")
30
46
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-go_modules
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.232.0
4
+ version: 0.234.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-14 00:00:00.000000000 Z
11
+ date: 2023-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dependabot-common
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.232.0
19
+ version: 0.234.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.232.0
26
+ version: 0.234.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -52,20 +52,6 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2.0'
55
- - !ruby/object:Gem::Dependency
56
- name: parallel_tests
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: 4.2.0
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: 4.2.0
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: rake
71
57
  requirement: !ruby/object:Gem::Requirement
@@ -164,6 +150,20 @@ dependencies:
164
150
  - - "~>"
165
151
  - !ruby/object:Gem::Version
166
152
  version: 0.2.16
153
+ - !ruby/object:Gem::Dependency
154
+ name: turbo_tests
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: 2.2.0
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: 2.2.0
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: vcr
169
169
  requirement: !ruby/object:Gem::Requirement
@@ -225,7 +225,7 @@ licenses:
225
225
  - Nonstandard
226
226
  metadata:
227
227
  bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
228
- changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.232.0
228
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.234.0
229
229
  post_install_message:
230
230
  rdoc_options: []
231
231
  require_paths: