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

Adding a package adds it to pixi.toml even if it failed #2516

Open
2 tasks done
AlexisTM opened this issue Nov 19, 2024 · 0 comments
Open
2 tasks done

Adding a package adds it to pixi.toml even if it failed #2516

AlexisTM opened this issue Nov 19, 2024 · 0 comments

Comments

@AlexisTM
Copy link

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

pixi init
pixi add colcon # results as: Cannot solve the request because of: No candidates were found for colcon *.
pixi add cmake # results as: Cannot solve the request because of: No candidates were found for colcon *. 

Issue description

When adding a package, we may have had a typo or maybe we added a non-existent package.
Regardless, this package will be added to the toml and will make it fail for all further calls.

Expected behavior

If the package doesn't exist, it shouldn't be added to the toml and report an error the package doesn't exist.

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

1 participant