<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/bundler/cli/lock.rb, branch v4.0.2</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[rubygems/rubygems] Fix `bundle lock` regression when using `update` and `lockfile` flags:</title>
<updated>2025-09-03T14:38:37+00:00</updated>
<author>
<name>Edouard CHIN</name>
<email>chin.edouard@gmail.com</email>
</author>
<published>2025-08-13T00:33:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=50d4622637b73715d20c5112f38d6fae0109c78f'/>
<id>50d4622637b73715d20c5112f38d6fae0109c78f</id>
<content type='text'>
- Ref #8917
- ### Problem

  Prior to Bundler 2.5.6, running
  `bundle lock --update foo --lockfile Gemfile_bumped.lock` would
  update only the foo gem and write the lockfile to the
  `Gemfile_bumped.lock`.

  In Bundler 2.5.6 and above running the same command, updates
  absolutely all gems.
  This change is related to #7047

  ### Solution

  We decided to expose the `write_lock` method rather than going
  through a complex deprecation cycle of the `lock` method.

  This commit applies the same business logic as prios to 2.5.6 where,
  we build the definition using the existing lockfile, make changes to
  the definition and dump it into the desired lockfile.

https://github.com/rubygems/rubygems/commit/c88f00c41d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Ref #8917
- ### Problem

  Prior to Bundler 2.5.6, running
  `bundle lock --update foo --lockfile Gemfile_bumped.lock` would
  update only the foo gem and write the lockfile to the
  `Gemfile_bumped.lock`.

  In Bundler 2.5.6 and above running the same command, updates
  absolutely all gems.
  This change is related to #7047

  ### Solution

  We decided to expose the `write_lock` method rather than going
  through a complex deprecation cycle of the `lock` method.

  This commit applies the same business logic as prios to 2.5.6 where,
  we build the definition using the existing lockfile, make changes to
  the definition and dump it into the desired lockfile.

https://github.com/rubygems/rubygems/commit/c88f00c41d
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Refactor handling platform removals</title>
<updated>2025-02-25T06:36:46+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2025-02-21T10:39:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=528471927307552efac5ff7e999df47dcb0bced2'/>
<id>528471927307552efac5ff7e999df47dcb0bced2</id>
<content type='text'>
And make it consistent with platform additions.

https://github.com/rubygems/rubygems/commit/64342ae404
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
And make it consistent with platform additions.

https://github.com/rubygems/rubygems/commit/64342ae404
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Fix `bundle lock --add-checksums`</title>
<updated>2024-11-25T18:14:32+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2024-11-20T10:59:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=62b9da7088fa54e9817efc0db1c5d6ddab438baa'/>
<id>62b9da7088fa54e9817efc0db1c5d6ddab438baa</id>
<content type='text'>
Due to a typo in the spec, the issue was not caught initially. If
Bundler does not need to re-resolve, `bundle lock` is a noop so Bundler
does not add checksums.

To fix the issue, we do something similar to what `bundle install` does,
just without actually installation. First set the domain (local or
remote) according to whether a re-resolve is necessary, and then
materialize lazy specifications into real specifications, so that
checksums are actually fetched from each source.

https://github.com/rubygems/rubygems/commit/84b6f4ee96
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Due to a typo in the spec, the issue was not caught initially. If
Bundler does not need to re-resolve, `bundle lock` is a noop so Bundler
does not add checksums.

To fix the issue, we do something similar to what `bundle install` does,
just without actually installation. First set the domain (local or
remote) according to whether a re-resolve is necessary, and then
materialize lazy specifications into real specifications, so that
checksums are actually fetched from each source.

https://github.com/rubygems/rubygems/commit/84b6f4ee96
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Most of the times, eagerly resolving is not necessary</title>
<updated>2024-11-25T18:14:31+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2024-11-20T12:03:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c215e95572d0e4f2b682634fd7ed8c8418e07eb1'/>
<id>c215e95572d0e4f2b682634fd7ed8c8418e07eb1</id>
<content type='text'>
All we need is to setup remote or local sources appropriately.

https://github.com/rubygems/rubygems/commit/3ceff46a2a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
All we need is to setup remote or local sources appropriately.

https://github.com/rubygems/rubygems/commit/3ceff46a2a
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Add `bundle lock --add-checksums` to add checksums to an existing lockfile</title>
<updated>2024-11-08T10:27:03+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2024-11-06T17:42:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f7b334e002eba25e386917337771b65bed5297f8'/>
<id>f7b334e002eba25e386917337771b65bed5297f8</id>
<content type='text'>
https://github.com/rubygems/rubygems/commit/0a9c1ce60d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/rubygems/rubygems/commit/0a9c1ce60d
</pre>
</div>
</content>
</entry>
<entry>
<title>Normalize lockfile platforms</title>
<updated>2024-10-26T09:44:15+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2024-07-26T09:50:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=5fa491b4059680217d51c66c9a21395aa34297b7'/>
<id>5fa491b4059680217d51c66c9a21395aa34297b7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Reject unknown platforms when running `bundle lock --add-platform`</title>
<updated>2024-08-29T09:59:26+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2024-08-26T14:33:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6dee0d3fb092924afe1c7e1df5e9294a8ae23b15'/>
<id>6dee0d3fb092924afe1c7e1df5e9294a8ae23b15</id>
<content type='text'>
https://github.com/rubygems/rubygems/commit/1f93a2bdc5
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/rubygems/rubygems/commit/1f93a2bdc5
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Emit progress to stderr when `--print` is passed to `bundle lock`</title>
<updated>2024-08-26T14:56:26+00:00</updated>
<author>
<name>Matt Brictson</name>
<email>matt@mattbrictson.com</email>
</author>
<published>2024-08-23T00:29:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7c794c287ec727f4634579556228cc018056e6f9'/>
<id>7c794c287ec727f4634579556228cc018056e6f9</id>
<content type='text'>
`bundle lock --print --update` can take a long time to fetch sources and
resolve the lock file.

Before, `--print` caused output to be completely silenced, so nothing
was printed at all until the resolved lock file is finally emitted to
stdout.

With this change, `--print` now prints progress to stderr. E.g.:

```
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...
```

This provides a better user experience, especially when
`lock --print --update` takes several seconds or more.

The lock file is still printed to stdout, so tools consuming the lock
file on stdout will not be affected.

https://github.com/rubygems/rubygems/commit/6719baa700
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`bundle lock --print --update` can take a long time to fetch sources and
resolve the lock file.

Before, `--print` caused output to be completely silenced, so nothing
was printed at all until the resolved lock file is finally emitted to
stdout.

With this change, `--print` now prints progress to stderr. E.g.:

```
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...
```

This provides a better user experience, especially when
`lock --print --update` takes several seconds or more.

The lock file is still printed to stdout, so tools consuming the lock
file on stdout will not be affected.

https://github.com/rubygems/rubygems/commit/6719baa700
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Refactor lockfile generation</title>
<updated>2024-02-08T05:43:56+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2023-03-02T19:18:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=24d5e7176e80cecfc38daf80020fb85f1144083b'/>
<id>24d5e7176e80cecfc38daf80020fb85f1144083b</id>
<content type='text'>
https://github.com/rubygems/rubygems/commit/6a0c03c77f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/rubygems/rubygems/commit/6a0c03c77f
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Refactor: Move filesystem access into Definition class</title>
<updated>2023-12-12T01:08:20+00:00</updated>
<author>
<name>Franz Liedke</name>
<email>franz@develophp.org</email>
</author>
<published>2023-12-02T19:03:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0653fb026cd2203158b7af1e8b9608911dce2860'/>
<id>0653fb026cd2203158b7af1e8b9608911dce2860</id>
<content type='text'>
https://github.com/rubygems/rubygems/commit/2720da2659
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/rubygems/rubygems/commit/2720da2659
</pre>
</div>
</content>
</entry>
</feed>
