pantsbuild / pants

The Pants Build System
https://www.pantsbuild.org
Apache License 2.0
3.29k stars 628 forks source link

diff with previous versions when generating builtin lockfiles #21407

Closed cburroughs closed 2 weeks ago

cburroughs commented 2 weeks ago

By copying the prior version, we get the same Lockfile diff as one would for a "regular" lockfile.

Demo:

$ pants run build-support/bin/generate_builtin_lockfiles.py -- semgrep
Lockfile diff: semgrep.lock [semgrep]

==                    Upgraded dependencies                     ==

  semgrep                        1.86.0       -->   1.87.0
  zipp                           3.20.1       -->   3.20.2

==                !! Downgraded dependencies !!                 ==

  rich                           13.8.1       -->   13.5.3

==                     Removed dependencies                     ==

  annotated-types                0.7.0
  pydantic                       2.8.2
  pydantic-core                  2.20.1

fixes #21388