dependabot-go_modules 0.217.0 → 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: ec5de2c1942e37ab004b74c62ea545ca43f6d98c7a2b1b9fa867e7d5c19c66ed
4
- data.tar.gz: dab31434493c55521c6ace9260718c9adf2b3820ed7b4c2c9842eaac87036775
3
+ metadata.gz: 1573ec8c21e8758179e79b663e1d0fcbe35453e01ab34f7d585e97affce2c4fd
4
+ data.tar.gz: 0e156266cc889514aabb059826733a525ba4d6d1e9cdb492f3c1f9c0e6627de2
5
5
  SHA512:
6
- metadata.gz: a278041a9b109f5aea83df6de073a9d1db7d8f2580b1d58ae6906932ec7d4fb1309aaf9d0c75ad111907c6a43a5efa7c132d0e4cc7d6a62e6f5e8338d3513ffa
7
- data.tar.gz: 71912594b057ac747e8ab534a7b91e5590148af45b41bc91b1407b6b31606ac24b4adff8232377e1aa5f6627e08129085019603fed6569408d5efe7bcffb5a0b
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.217.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-04-24 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.217.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.217.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
- 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: