Skip to content

Commit

Permalink
Testing dependency update
Browse files Browse the repository at this point in the history
  • Loading branch information
sachin-sandhu committed May 22, 2024
1 parent 2dec901 commit b479e05
Show file tree
Hide file tree
Showing 4 changed files with 224 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bundler/helpers/v2/lib/functions/lockfile_updater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ def build_definition(dependencies_to_unlock)
# if those sub-deps are top-level dependencies. We only want true
# subdeps unlocked, like they were in the UpdateChecker, so we
# mutate the unlocked gems array.
@gems_to_unlock = @unlock[:gems]
unlocked = defn.instance_variable_get(:@gems_to_unlock)
@gems_to_unlock[:gems] = @unlock[:gems]
unlocked = defn.instance_variable_get(:@gems_to_unlock).fetch(:gems)
must_not_unlock = defn.dependencies.map { |x| x.name.to_s } -
dependencies_to_unlock
unlocked.reject! { |n| must_not_unlock.include?(n) }
Expand Down
191 changes: 191 additions & 0 deletions out.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
input:
job:
package-manager: go_modules
allowed-updates:
- update-type: all
ignore-conditions:
- dependency-name: rsc.io/quote/v3
source: out.yml
version-requirement: '>3.1.0'
- dependency-name: rsc.io/sampler
source: out.yml
version-requirement: '>1.99.99'
source:
provider: github
repo: rsc/quote
directory: /
commit: 5d9f230bcfbae514bb6c2215694c2ce7273fc604
output:
- type: update_dependency_list
expect:
data:

Check failure on line 21 in out.yml

View workflow job for this annotation

GitHub Actions / Lint

21:9 [indentation] wrong indentation: expected 10 but found 8
dependencies:
- name: rsc.io/quote/v3
requirements:
- file: go.mod

Check failure on line 25 in out.yml

View workflow job for this annotation

GitHub Actions / Lint

25:21 [indentation] wrong indentation: expected 22 but found 20
groups: []
requirement: v3.0.0
source:
source: rsc.io/quote/v3

Check failure on line 29 in out.yml

View workflow job for this annotation

GitHub Actions / Lint

29:25 [indentation] wrong indentation: expected 26 but found 24
type: default
version: 3.0.0
- name: rsc.io/sampler
requirements:
- file: go.mod

Check failure on line 34 in out.yml

View workflow job for this annotation

GitHub Actions / Lint

34:21 [indentation] wrong indentation: expected 22 but found 20
groups: []
requirement: v1.3.0
source:
source: rsc.io/sampler

Check failure on line 38 in out.yml

View workflow job for this annotation

GitHub Actions / Lint

38:25 [indentation] wrong indentation: expected 26 but found 24
type: default
version: 1.3.0
dependency_files:
- /go.mod
- /go.sum
- type: create_pull_request
expect:
data:

Check failure on line 46 in out.yml

View workflow job for this annotation

GitHub Actions / Lint

46:9 [indentation] wrong indentation: expected 10 but found 8
base-commit-sha: 5d9f230bcfbae514bb6c2215694c2ce7273fc604
dependencies:
- name: rsc.io/quote/v3
previous-requirements:
- file: go.mod

Check failure on line 51 in out.yml

View workflow job for this annotation

GitHub Actions / Lint

51:21 [indentation] wrong indentation: expected 22 but found 20
groups: []
requirement: v3.0.0
source:
source: rsc.io/quote/v3

Check failure on line 55 in out.yml

View workflow job for this annotation

GitHub Actions / Lint

55:25 [indentation] wrong indentation: expected 26 but found 24
type: default
previous-version: 3.0.0
requirements:
- file: go.mod

Check failure on line 59 in out.yml

View workflow job for this annotation

GitHub Actions / Lint

59:21 [indentation] wrong indentation: expected 22 but found 20
groups: []
requirement: 3.1.0
source:
source: rsc.io/quote/v3

Check failure on line 63 in out.yml

View workflow job for this annotation

GitHub Actions / Lint

63:25 [indentation] wrong indentation: expected 26 but found 24
type: default
version: 3.1.0
updated-dependency-files:
- content: |
module rsc.io/quote
require rsc.io/quote/v3 v3.1.0
require (
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c // indirect
rsc.io/sampler v1.3.0 // indirect
)
content_encoding: utf-8
deleted: false
directory: /
name: go.mod
operation: update
support_file: false
type: file
mode: "100644"
- content: |
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c h1:qgOY6WgZOaTkIIMiVjBQcw93ERBE4m30iBm00nkL0i8=
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
rsc.io/quote/v3 v3.1.0 h1:9JKUTTIUgS6kzR9mK1YuGKv6Nl+DijDNIc0ghT58FaY=
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
rsc.io/sampler v1.3.0 h1:7uVkIFmeBqHfdjD+gZwtXXI+RODJ2Wc4O7MPEh/QiW4=
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
content_encoding: utf-8
deleted: false
directory: /
name: go.sum
operation: update
support_file: false
type: file
mode: "100644"
pr-title: 'build(deps): bump rsc.io/quote/v3 from 3.0.0 to 3.1.0'
pr-body: |
Bumps [rsc.io/quote/v3](https://github.com/rsc/quote) from 3.0.0 to 3.1.0.
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/rsc/quote/commit/0406d7298882187f4c75f75fa85cc808a64bcef1"><code>0406d72</code></a> v3: add Concurrency</li>
<li>See full diff in <a href="https://github.com/rsc/quote/compare/v3.0.0...v3.1.0">compare view</a></li>
</ul>
</details>
<br />
commit-message: |-
build(deps): bump rsc.io/quote/v3 from 3.0.0 to 3.1.0
Bumps [rsc.io/quote/v3](https://github.com/rsc/quote) from 3.0.0 to 3.1.0.
- [Commits](https://github.com/rsc/quote/compare/v3.0.0...v3.1.0)
- type: create_pull_request
expect:
data:
base-commit-sha: 5d9f230bcfbae514bb6c2215694c2ce7273fc604
dependencies:
- name: rsc.io/sampler
previous-requirements:
- file: go.mod
groups: []
requirement: v1.3.0
source:
source: rsc.io/sampler
type: default
previous-version: 1.3.0
requirements:
- file: go.mod
groups: []
requirement: 1.99.99
source:
source: rsc.io/sampler
type: default
version: 1.99.99
updated-dependency-files:
- content: |
module rsc.io/quote
require rsc.io/quote/v3 v3.0.0
require (
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c // indirect
rsc.io/sampler v1.99.99 // indirect
)
content_encoding: utf-8
deleted: false
directory: /
name: go.mod
operation: update
support_file: false
type: file
mode: "100644"
- content: |
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c h1:qgOY6WgZOaTkIIMiVjBQcw93ERBE4m30iBm00nkL0i8=
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
rsc.io/quote/v3 v3.0.0 h1:OEIXClZHFMyx5FdatYfxxpNEvxTqHlu5PNdla+vSYGg=
rsc.io/quote/v3 v3.0.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
rsc.io/sampler v1.99.99 h1:7i08f/p5TBU5joCPW3GjWG1ZFCmr28ybGqlXtelhEK8=
rsc.io/sampler v1.99.99/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
content_encoding: utf-8
deleted: false
directory: /
name: go.sum
operation: update
support_file: false
type: file
mode: "100644"
pr-title: 'build(deps): bump rsc.io/sampler from 1.3.0 to 1.99.99'
pr-body: |
Bumps [rsc.io/sampler](https://github.com/rsc/sampler) from 1.3.0 to 1.99.99.
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/rsc/sampler/commit/732a3c400797d8835f2af34a9561f155bef85435"><code>732a3c4</code></a> sampler: break Hello</li>
<li><a href="https://github.com/rsc/sampler/commit/c459d41bebff40e23f5a39caae33dbf154f129a9"><code>c459d41</code></a> sampler: fix</li>
<li>See full diff in <a href="https://github.com/rsc/sampler/compare/v1.3.0...v1.99.99">compare view</a></li>
</ul>
</details>
<br />
commit-message: |-
build(deps): bump rsc.io/sampler from 1.3.0 to 1.99.99
Bumps [rsc.io/sampler](https://github.com/rsc/sampler) from 1.3.0 to 1.99.99.
- [Commits](https://github.com/rsc/sampler/compare/v1.3.0...v1.99.99)
- type: mark_as_processed
expect:
data:
base-commit-sha: 5d9f230bcfbae514bb6c2215694c2ce7273fc604
Empty file added out_new.yml
Empty file.
31 changes: 31 additions & 0 deletions test/Gemfile.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
source 'http://rubygems.org'

gem 'rails', '3.0.7'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'sqlite3'

# Use unicorn as the web server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)
# gem 'ruby-debug'
# gem 'ruby-debug19', :require => 'ruby-debug'

# Bundle the extra gems:
# gem 'bj'
# gem 'nokogiri'
# gem 'sqlite3-ruby', :require => 'sqlite3'
# gem 'aws-s3', :require => 'aws/s3'

# Bundle gems for the local environment. Make sure to
# put test-only gems in this group so their generators
# and rake tasks are available in development mode:
# group :development, :test do
# gem 'webrat'
# end

0 comments on commit b479e05

Please sign in to comment.