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 +4 -4
- data/helpers/go.mod +1 -1
- data/lib/dependabot/go_modules/file_updater/go_mod_updater.rb +8 -6
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e2533847e50617fe2d1db1a69276e268022f4a0fedde619a6f3494bc001556a
|
4
|
+
data.tar.gz: ae3c822249db054fbe95b990f8fd6b26d720b31fdccdbcc60647933176595266
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d07ec14c5eee96c843ac1c98b82873f2dbdd4ada2e40ed8594afbab24ba06a1a839ec9293d7243c3ed808da94bb4019020f824905a4e708747580e86567e7d8c
|
7
|
+
data.tar.gz: e531bb11b041e79edb5116ec29c235d98e774adb644fe00a4153eca6f6841dea5b9f2084670b4523c63059cd89ba1aea2cebb8aea5050861ee816142372a0c5c
|
data/helpers/go.mod
CHANGED
@@ -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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
138
|
+
version: 1.33.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: ruby-debug-ide
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|