dependabot-go_modules 0.204.0 → 0.206.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: a1dfe8cbe4628e0996b77ebbbb58f5383467a660336255c1c727ae748f0db61d
4
- data.tar.gz: 945369071685baf2aa4e7ce1acc58b69fbd64dd5b29c81ca95d107466dacb46d
3
+ metadata.gz: 48155e8023c5043a2f292efe0959ed2592af51b60795999e1c958329185d91f5
4
+ data.tar.gz: ec86d1b8604288eac67b175ba5c949178ae7538e654387a56746ea111d9227d2
5
5
  SHA512:
6
- metadata.gz: 3ad549479f81bc8111124ca4c3692d9762626f50909f7e2616cec9126dc92ebc44bbb2c537d6b43378094b8605b15db531c7d34657583ab9e52777ec00c4e9cd
7
- data.tar.gz: 1416f8a4224bf84fc037911f6bc60fc5b9342e473d5fad56efa10304dd968e639fe05b6b0db77fc668406641caff6d77024a98ddd0561859209c00b4a2d6e059
6
+ metadata.gz: dd4672429b642ecceb7207e20029c9e6a2fbc47b811e9b490aad9ecad2a76a6b3c866e2d751aba08b17b89362a4ae2eaca3eb6ef648ca1fd4f7747a0ff7418bf
7
+ data.tar.gz: dd90f413fa3e2d614481e07c91c4f163af320354354af830d22f04604f274ed917a28261e43b9e9c8e92a2168e2bfaf848090c1e19b85b4e37c451fbd8b232e2
data/helpers/go.mod CHANGED
@@ -1,5 +1,5 @@
1
1
  module github.com/dependabot/dependabot-core/go_modules/helpers
2
2
 
3
- go 1.18
3
+ go 1.19
4
4
 
5
5
  require github.com/Masterminds/vcs v1.13.3
@@ -154,13 +154,15 @@ module Dependabot
154
154
  end
155
155
 
156
156
  def run_go_get(dependencies = [])
157
+ # `go get` will fail if there are no go files in the directory.
158
+ # For example, if a `//go:build` tag excludes all files when run
159
+ # on a particular architecture. However, dropping a go file with
160
+ # a `package ...` line in it will always make `go get` succeed...
161
+ # Even when the package name doesn't match the rest of the files
162
+ # in the directory! I assume this is because it doesn't actually
163
+ # compile anything when it runs.
157
164
  tmp_go_file = "#{SecureRandom.hex}.go"
158
-
159
- package = Dir.glob("[^\._]*.go").any? do |path|
160
- !File.read(path).include?("// +build")
161
- end
162
-
163
- File.write(tmp_go_file, "package dummypkg\n") unless package
165
+ File.write(tmp_go_file, "package dummypkg\n")
164
166
 
165
167
  command = +"go get"
166
168
  # `go get` accepts multiple packages, each separated by a space
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.204.0
4
+ version: 0.206.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-03 00:00:00.000000000 Z
11
+ date: 2022-08-10 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.204.0
19
+ version: 0.206.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.204.0
26
+ version: 0.206.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debase
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 1.31.2
131
+ version: 1.33.0
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 1.31.2
138
+ version: 1.33.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: ruby-debug-ide
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -266,7 +266,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
266
266
  - !ruby/object:Gem::Version
267
267
  version: 2.7.0
268
268
  requirements: []
269
- rubygems_version: 3.3.7
269
+ rubygems_version: 3.1.6
270
270
  signing_key:
271
271
  specification_version: 4
272
272
  summary: Go modules support for dependabot