dependabot-go_modules 0.217.0 → 0.219.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: 76fcf9903bbf135d8ba04e1d360eb55b6cfb9251b0cfed00b1882c42040da4f0
4
+ data.tar.gz: ae4fbf4c48d7b7271f2f3492d876f4296005d3056e774135b41ad82692c1a5ee
5
5
  SHA512:
6
- metadata.gz: a278041a9b109f5aea83df6de073a9d1db7d8f2580b1d58ae6906932ec7d4fb1309aaf9d0c75ad111907c6a43a5efa7c132d0e4cc7d6a62e6f5e8338d3513ffa
7
- data.tar.gz: 71912594b057ac747e8ab534a7b91e5590148af45b41bc91b1407b6b31606ac24b4adff8232377e1aa5f6627e08129085019603fed6569408d5efe7bcffb5a0b
6
+ metadata.gz: 0d35f386289f72d40ad7437c5de290faae33947d0e65f950ee0b086d4316386339624bce2b03817ad650a46aad58e528494383fcbd58505ecd9194e03f4198a1
7
+ data.tar.gz: 4065341a3455bde0c78b85ac0f7ef95106bcb07495e06bfa66b86d0c08e4525b585ee27d6cb787530e3afb706870aa99bbbc6aab1e17dd2a433b2068a2c992c1
@@ -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.219.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-06-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.217.0
19
+ version: 0.219.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.219.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.219.0
243
243
  post_install_message:
244
244
  rdoc_options: []
245
245
  require_paths: