dependabot-go_modules 0.205.1 → 0.206.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: 48155e8023c5043a2f292efe0959ed2592af51b60795999e1c958329185d91f5
|
4
|
+
data.tar.gz: ec86d1b8604288eac67b175ba5c949178ae7538e654387a56746ea111d9227d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd4672429b642ecceb7207e20029c9e6a2fbc47b811e9b490aad9ecad2a76a6b3c866e2d751aba08b17b89362a4ae2eaca3eb6ef648ca1fd4f7747a0ff7418bf
|
7
|
+
data.tar.gz: dd90f413fa3e2d614481e07c91c4f163af320354354af830d22f04604f274ed917a28261e43b9e9c8e92a2168e2bfaf848090c1e19b85b4e37c451fbd8b232e2
|
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.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-
|
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.
|
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.
|
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.
|
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
|