dependabot-go_modules 0.217.0 → 0.218.0
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: 1573ec8c21e8758179e79b663e1d0fcbe35453e01ab34f7d585e97affce2c4fd
|
4
|
+
data.tar.gz: 0e156266cc889514aabb059826733a525ba4d6d1e9cdb492f3c1f9c0e6627de2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bc38d509e3b7c9111a2a0debfb887b39831d0d33b7a7494191695bab83a3c77755bd150fc5335cd4fbb3435e9097ddd2becc767dfc4bb24c6b11171db56dd3e
|
7
|
+
data.tar.gz: b0d8d9c64e56cbebafc5ac64d2d929a954b40114508acbf643b20d5c467c6effe97f83c2ab2da589eca9756c8e8d114ca71f1bb675884cf63adfb4894a133a2d
|
@@ -63,9 +63,10 @@ module Dependabot
|
|
63
63
|
|
64
64
|
GO_MOD_VERSION = /^go 1\.[\d]+$/
|
65
65
|
|
66
|
-
def initialize(dependencies:, credentials:, repo_contents_path:,
|
66
|
+
def initialize(dependencies:, dependency_files:, credentials:, repo_contents_path:,
|
67
67
|
directory:, options:)
|
68
68
|
@dependencies = dependencies
|
69
|
+
@dependency_files = dependency_files
|
69
70
|
@credentials = credentials
|
70
71
|
@repo_contents_path = repo_contents_path
|
71
72
|
@directory = directory
|
@@ -84,7 +85,7 @@ module Dependabot
|
|
84
85
|
|
85
86
|
private
|
86
87
|
|
87
|
-
attr_reader :dependencies, :credentials, :repo_contents_path,
|
88
|
+
attr_reader :dependencies, :dependency_files, :credentials, :repo_contents_path,
|
88
89
|
:directory
|
89
90
|
|
90
91
|
def updated_files
|
@@ -93,6 +94,14 @@ module Dependabot
|
|
93
94
|
|
94
95
|
def update_files # rubocop:disable Metrics/AbcSize, Metrics/PerceivedComplexity
|
95
96
|
in_repo_path do
|
97
|
+
# During grouped updates, the dependency_files are from a previous dependency
|
98
|
+
# update, so we need to update them on disk after the git reset in in_repo_path.
|
99
|
+
dependency_files.each do |file|
|
100
|
+
path = Pathname.new(file.name).expand_path
|
101
|
+
FileUtils.mkdir_p(path.dirname)
|
102
|
+
File.write(path, file.content)
|
103
|
+
end
|
104
|
+
|
96
105
|
# Map paths in local replace directives to path hashes
|
97
106
|
original_go_mod = File.read("go.mod")
|
98
107
|
original_manifest = parse_manifest
|
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.218.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-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.218.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.218.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: debug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -238,8 +238,8 @@ homepage: https://github.com/dependabot/dependabot-core
|
|
238
238
|
licenses:
|
239
239
|
- Nonstandard
|
240
240
|
metadata:
|
241
|
-
|
242
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/
|
241
|
+
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
242
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.218.0
|
243
243
|
post_install_message:
|
244
244
|
rdoc_options: []
|
245
245
|
require_paths:
|