Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a goal to automate a portion of (root) dependency upgrades #15275

Open
stuhood opened this issue Apr 28, 2022 · 3 comments
Open

Implement a goal to automate a portion of (root) dependency upgrades #15275

stuhood opened this issue Apr 28, 2022 · 3 comments

Comments

@stuhood
Copy link
Member

stuhood commented Apr 28, 2022

Updating a root/directly-declared dependency involves:

  1. determining the current version (equivalent of a language/field-specific use of ./pants peek)
  2. determining available versions (language specific use of a resolver like PEX/pip/Coursier)
  3. (optionally) executing either a BUILD file (or language specific file like requirements.txt due to macros) edit to adjust the version

We should look at prior art in other lockfile/version management CLI tools for the rough shape of this goal, but the expected usecases would be either:

  1. A user manually updating one or multiple versions locally (./pants update ::)
  2. Automation updating a single root dep at a time, á la Create a dependabot-alike for updating thirdparty dependencies for Pants #14193 (./pants update $target)
@kaos
Copy link
Member

kaos commented Apr 28, 2022

Related/supercedes #12880

@stuhood
Copy link
Member Author

stuhood commented Apr 28, 2022

Related/supercedes #12880

Ah, shoot: I did a poor job of searching. Yea, this one is intended to cover a relatively narrow usecase, which doesn't include add/remove for deps. I would imagine it taking existing target(s) as input, which makes the problem a bit easier maybe.

@cognifloyd
Copy link
Member

Related: #15704

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants