dependabot-go_modules 0.97.3 → 0.97.4

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: 3b44a8f62a2d41799c28d9caea7f0299669504077a3fb1a5f11c2a957df85001
4
- data.tar.gz: bd84fd6177e10030b8525d598e3793a3db5bba23b7e79ce26c44c1c94d7c48f2
3
+ metadata.gz: c7be449f45048e8ff16f561c11740722510d9f99bc22fabce5be0ee13981d48f
4
+ data.tar.gz: 2e4ba921e257ce7baf130167f45598262d8e3312695f9670a7e8daec50e8f792
5
5
  SHA512:
6
- metadata.gz: 56c4b84424efdd5bd07a4c9a8fd911035aea6ec5226fadeb7495a97251be128c0b5181f8fac826ce2643e083fae1f8d2062194c4b537a9ce47cb9d0647b2db99
7
- data.tar.gz: 0371c5b6fb41b6658cfb4d1968fc99dc27e9cd782cf3fa15503d14536fb6c7be16de542d1ada9ffe0e8f75ecf0f89fceec45703487a94ee73d31459a24c953d6
6
+ metadata.gz: 894c256675c10c038e7e4fb3922e8d41a9049d0981f992f9ac4ffc83ddd94248800efaa0b7fe53320cde18e7c87ee2b2351f5c3f5e33b8588088929dd73855bc
7
+ data.tar.gz: 3571b29b322c061744a98495b997c12ae2deebde9f6f35279d874011d0a00af699c1b05d0a7f1594f883cf94db70ae6eba4929e54cf782c3c5b47eb44a1d2aa5
@@ -71,9 +71,10 @@ module Dependabot
71
71
  SharedHelpers.with_git_configured(credentials: credentials) do
72
72
  File.write("go.mod", go_mod.content)
73
73
 
74
- command = "GO111MODULE=on go mod edit -print > /dev/null"
75
- command += " && GO111MODULE=on go list -m -json all"
76
- stdout, stderr, status = Open3.capture3(command)
74
+ command = "go mod edit -print > /dev/null"
75
+ command += " && go list -m -json all"
76
+ env = { "GO111MODULE" => "on" }
77
+ stdout, stderr, status = Open3.capture3(env, command)
77
78
  handle_parser_error(path, stderr) unless status.success?
78
79
  stdout
79
80
  rescue Dependabot::DependencyFileNotResolvable
@@ -31,7 +31,8 @@ module Dependabot
31
31
  end
32
32
 
33
33
  SharedHelpers.run_helper_subprocess(
34
- command: "GO111MODULE=on #{NativeHelpers.helper_path}",
34
+ command: NativeHelpers.helper_path,
35
+ env: { "GO111MODULE" => "on" },
35
36
  function: "updateDependencyFile",
36
37
  args: { dependencies: deps }
37
38
  )
@@ -52,8 +53,8 @@ module Dependabot
52
53
  File.write("go.sum", go_sum.content)
53
54
  File.write("main.go", dummy_main_go)
54
55
 
55
- command = "GO111MODULE=on go get -d"
56
- _, stderr, status = Open3.capture3(command)
56
+ env = { "GO111MODULE" => "on" }
57
+ _, stderr, status = Open3.capture3(env, "go get -d")
57
58
  unless status.success?
58
59
  handle_subprocess_error(go_sum.path, stderr)
59
60
  end
@@ -41,7 +41,8 @@ module Dependabot
41
41
  File.write("go.mod", go_mod.content)
42
42
 
43
43
  SharedHelpers.run_helper_subprocess(
44
- command: "GO111MODULE=on #{NativeHelpers.helper_path}",
44
+ command: NativeHelpers.helper_path,
45
+ env: { "GO111MODULE" => "on" },
45
46
  function: "getUpdatedVersion",
46
47
  args: {
47
48
  dependency: {
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.97.3
4
+ version: 0.97.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-10 00:00:00.000000000 Z
11
+ date: 2019-03-12 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.97.3
19
+ version: 0.97.4
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.97.3
26
+ version: 0.97.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement