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

pixi global sync should collect errors rather than returning early #2584

Closed
Hofer-Julian opened this issue Nov 28, 2024 · 1 comment · Fixed by #2586
Closed

pixi global sync should collect errors rather than returning early #2584

Hofer-Julian opened this issue Nov 28, 2024 · 1 comment · Fixed by #2586
Assignees
Labels
area:global Related to pixi global ✨ enhancement Feature request

Comments

@Hofer-Julian
Copy link
Contributor

Problem description

Running pixi global sync on this pixi-global.toml

version = 1

[envs.test]
channels = ["https://prefix.dev/conda-forge"]
dependencies = { invalid_package = "*" }
exposed = {}

[envs.test2]
channels = ["https://prefix.dev/conda-forge"]
dependencies = { invalid_package_2 = "*" }
exposed = {}

[envs.typos]
channels = ["https://prefix.dev/conda-forge"]
dependencies = { typos = "*" }
exposed = { typos = "typos" }

gives the following error:

  × failed to solve environment
  ╰─▶ Cannot solve the request because of: No candidates were found for invalid_package *.

Also, typos is not available afterward.

As discussed with @wolfv, it would be good if:

  • all errors would be collected, and
  • correct environments would still be evaluated
@Hofer-Julian Hofer-Julian added ✨ enhancement Feature request area:global Related to pixi global labels Nov 28, 2024
@Hofer-Julian Hofer-Julian self-assigned this Nov 28, 2024
@wolfv
Copy link
Member

wolfv commented Nov 28, 2024

Thanks for writing this up! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:global Related to pixi global ✨ enhancement Feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants