dependabot-go_modules 0.205.1 → 0.208.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: baf0111ac94ec9cb73652540efe766a77736d5e2c89c293dec699d44e25db675
4
- data.tar.gz: 7a31b636c64a55d22a881a44e231e30ded808e2f3a742366f0e9a3b7b5b397c3
3
+ metadata.gz: 7e2533847e50617fe2d1db1a69276e268022f4a0fedde619a6f3494bc001556a
4
+ data.tar.gz: ae3c822249db054fbe95b990f8fd6b26d720b31fdccdbcc60647933176595266
5
5
  SHA512:
6
- metadata.gz: a70dc4925577872c9ef6215031ea960503b8061257209e1f59183f63baa98bfb7cb8693edc652160267c334a0a9ce2bb425e75ab561d1933ff422ea65e309799
7
- data.tar.gz: 9a6f7706b23da7bfce13cbafbe02f8409f3bc529e5fccd8489ca08573648f98042a696a94f676426c5f21e0af44dc1616b3ce38dfc06fb0c9cc99b48b2ed4af8
6
+ metadata.gz: d07ec14c5eee96c843ac1c98b82873f2dbdd4ada2e40ed8594afbab24ba06a1a839ec9293d7243c3ed808da94bb4019020f824905a4e708747580e86567e7d8c
7
+ data.tar.gz: e531bb11b041e79edb5116ec29c235d98e774adb644fe00a4153eca6f6841dea5b9f2084670b4523c63059cd89ba1aea2cebb8aea5050861ee816142372a0c5c
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.205.1
4
+ version: 0.208.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-08 00:00:00.000000000 Z
11
+ date: 2022-08-16 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.205.1
19
+ version: 0.208.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.205.1
26
+ version: 0.208.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