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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: baf0111ac94ec9cb73652540efe766a77736d5e2c89c293dec699d44e25db675
4
- data.tar.gz: 7a31b636c64a55d22a881a44e231e30ded808e2f3a742366f0e9a3b7b5b397c3
3
+ metadata.gz: 48155e8023c5043a2f292efe0959ed2592af51b60795999e1c958329185d91f5
4
+ data.tar.gz: ec86d1b8604288eac67b175ba5c949178ae7538e654387a56746ea111d9227d2
5
5
  SHA512:
6
- metadata.gz: a70dc4925577872c9ef6215031ea960503b8061257209e1f59183f63baa98bfb7cb8693edc652160267c334a0a9ce2bb425e75ab561d1933ff422ea65e309799
7
- data.tar.gz: 9a6f7706b23da7bfce13cbafbe02f8409f3bc529e5fccd8489ca08573648f98042a696a94f676426c5f21e0af44dc1616b3ce38dfc06fb0c9cc99b48b2ed4af8
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.205.1
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-08 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.205.1
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.205.1
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