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

feat: add pixi upgrade #2368

Merged
merged 52 commits into from
Nov 6, 2024
Merged

Conversation

Hofer-Julian
Copy link
Contributor

@Hofer-Julian Hofer-Julian commented Oct 29, 2024

Design proposal: #912

Implementation in this PR:

# Resolve all the dependencies of the default feature without any constraints and installs the solved solution.
pixi upgrade 

# Resolve a specific dependency
pixi upgrade package

# Resolve multiple dependencies
pixi upgrade package_a package_b

# Upgrade all dependencies in a single feature
pixi upgrade --feature test

# Upgrade all dependencies except python and julia
pixi upgrade --exclude python --exclude julia

# Run upgrade logic without writing to disk
pixi upgrade --dry-run

# Run upgrade and get output in json format
pixi upgrade --json

This PR is important as it is not easy enough right now to update a full setup with pixi as it automatically pins most of your dependencies to a major or minor version.

src/cli/upgrade.rs Outdated Show resolved Hide resolved
@Hofer-Julian Hofer-Julian marked this pull request as ready for review November 4, 2024 13:16
Copy link
Contributor

@ruben-arts ruben-arts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested it while adding some small features. Works great!

@Hofer-Julian Hofer-Julian enabled auto-merge (squash) November 6, 2024 10:18
@Hofer-Julian Hofer-Julian merged commit 1be5f6d into prefix-dev:main Nov 6, 2024
43 checks passed
@Hofer-Julian Hofer-Julian deleted the feat/upgrade branch November 6, 2024 13:43
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

Successfully merging this pull request may close these issues.

2 participants