dependabot-go_modules 0.216.2 → 0.218.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: 8ce73684bdf7d26c3b441c5f46a7a27d35f5fec91304f519c68cabb6ea89f1d5
4
- data.tar.gz: 5a9be0eb18187e6dccc01aa6943e96e0b3b22d4741236588f23744c4e0964e58
3
+ metadata.gz: 1573ec8c21e8758179e79b663e1d0fcbe35453e01ab34f7d585e97affce2c4fd
4
+ data.tar.gz: 0e156266cc889514aabb059826733a525ba4d6d1e9cdb492f3c1f9c0e6627de2
5
5
  SHA512:
6
- metadata.gz: e15875044bb847d74464d9136b8847a1e38814a1dec479d238c734c1f6bb910f7e0ad0d19b70515f593de26212260094f41297a0f417cf42819096edc9cc9c57
7
- data.tar.gz: 6fc06e770884ff23316a2b722dae7a42af74e368600a0b03d72c06fad0ccb91bf577e4f3d6c200aa91e5a868bf42292ec09543f382d51b7bf5b1151778ff2c15
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
@@ -117,6 +117,7 @@ module Dependabot
117
117
  @file_updater ||=
118
118
  GoModUpdater.new(
119
119
  dependencies: dependencies,
120
+ dependency_files: dependency_files,
120
121
  credentials: credentials,
121
122
  repo_contents_path: repo_contents_path,
122
123
  directory: directory,
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.216.2
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-04-20 00:00:00.000000000 Z
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.216.2
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.216.2
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
- issue_tracker_uri: https://github.com/dependabot/dependabot-core/issues
242
- changelog_uri: https://github.com/dependabot/dependabot-core/blob/main/CHANGELOG.md
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: