dependabot-go_modules 0.122.0 → 0.124.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4d00b5ee9167f7e1e7634a005c57ab8c67ee6047e2a308ff002258cfebd2334
|
4
|
+
data.tar.gz: 5ce5546b8ee038eba45b1dc2af99d2f6c96c5b44f8229c31a253620d6e218c9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ec67eddd8f22e7fb54cdc832a5a34b3e3f40db7cf6a5450133227fad8f7da4a180c867c88919d5e6ee959d95df5d65354450272d4e7e010b0a7cb30b6fd7fad
|
7
|
+
data.tar.gz: a1ed92b9bba733da70aaaba8d497e1fe175335c28f384bb55599ecf65ceab98f8edab4c833df80946fb8c0f4bc500b776a063820f589ab76335b59693ed57d5d
|
@@ -13,22 +13,8 @@ module Dependabot
|
|
13
13
|
def initialize(dependencies:, dependency_files:, repo_contents_path: nil,
|
14
14
|
credentials:, options: {})
|
15
15
|
super
|
16
|
-
return unless repo_contents_path.nil?
|
17
16
|
|
18
|
-
|
19
|
-
tmp = Dir.mktmpdir
|
20
|
-
Dir.chdir(tmp) do
|
21
|
-
dependency_files.each do |file|
|
22
|
-
File.write(file.name, file.content)
|
23
|
-
end
|
24
|
-
`git config --global user.email "no-reply@github.com"`
|
25
|
-
`git config --global user.name "Dependabot"`
|
26
|
-
`git init .`
|
27
|
-
`git add .`
|
28
|
-
`git commit -m'fake repo_contents_path'`
|
29
|
-
end
|
30
|
-
@repo_contents_path = tmp
|
31
|
-
@repo_contents_stub = true
|
17
|
+
use_repo_contents_stub if repo_contents_path.nil?
|
32
18
|
end
|
33
19
|
|
34
20
|
def self.updated_files_regex
|
@@ -76,6 +62,21 @@ module Dependabot
|
|
76
62
|
raise "No go.mod!"
|
77
63
|
end
|
78
64
|
|
65
|
+
def use_repo_contents_stub
|
66
|
+
@repo_contents_stub = true
|
67
|
+
@repo_contents_path = Dir.mktmpdir
|
68
|
+
Dir.chdir(@repo_contents_path) do
|
69
|
+
dependency_files.each do |file|
|
70
|
+
File.write(file.name, file.content)
|
71
|
+
end
|
72
|
+
`git config --global user.email "no-reply@github.com"`
|
73
|
+
`git config --global user.name "Dependabot"`
|
74
|
+
`git init .`
|
75
|
+
`git add .`
|
76
|
+
`git commit -m'fake repo_contents_path'`
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
79
80
|
def go_mod
|
80
81
|
@go_mod ||= get_original_file("go.mod")
|
81
82
|
end
|
@@ -111,12 +112,11 @@ module Dependabot
|
|
111
112
|
end
|
112
113
|
|
113
114
|
def tidy?
|
114
|
-
!@repo_contents_stub
|
115
|
+
!@repo_contents_stub
|
115
116
|
end
|
116
117
|
|
117
118
|
def vendor?
|
118
|
-
File.exist?(File.join(vendor_dir, "modules.txt"))
|
119
|
-
options.fetch(:go_mod_vendor, false)
|
119
|
+
File.exist?(File.join(vendor_dir, "modules.txt"))
|
120
120
|
end
|
121
121
|
end
|
122
122
|
end
|
@@ -14,9 +14,14 @@ module Dependabot
|
|
14
14
|
ENVIRONMENT = { "GOPRIVATE" => "*" }.freeze
|
15
15
|
|
16
16
|
RESOLVABILITY_ERROR_REGEXES = [
|
17
|
+
# (Private) module could not be fetched
|
17
18
|
/go: .*: git fetch .*: exit status 128/.freeze,
|
19
|
+
# The checksum in go.sum does not match the dowloaded content
|
18
20
|
/verifying .*: checksum mismatch/.freeze,
|
19
|
-
|
21
|
+
# (Private) module could not be found
|
22
|
+
/cannot find module providing package/.freeze,
|
23
|
+
# Package in module was likely renamed or removed
|
24
|
+
/module .* found \(.*\), but does not contain package/m.freeze
|
20
25
|
].freeze
|
21
26
|
|
22
27
|
MODULE_PATH_MISMATCH_REGEXES = [
|
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.124.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-22 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.124.1
|
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.124.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.
|
103
|
+
version: 0.93.0
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.
|
110
|
+
version: 0.93.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: simplecov
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|