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: parse labels and related errors from build backend #2952

Merged

Conversation

baszalmstra
Copy link
Contributor

This PR propagates more error details from build backends into pixi. This includes labels, related errors, help texts and more.

This is useful to pass contextual errors from a build backend to pixi, which will then render them fancyfull using miette. This will ensure that any settings that the user passed with regards to coloring, terminal size etc will be respected.

@baszalmstra baszalmstra requested a review from tdejager January 18, 2025 23:13
@tdejager
Copy link
Contributor

Is there a way to see the better error messages, I tried changing a dependency for the cpp_sdl example but for both branches I get:

Error:
  × failed to extract metadata for 'sdl_example'
  ├─▶ Failed to resolve dependencies: Cannot solve the request because of: No candidates were found for bloep *.
  │
  ╰─▶ Cannot solve the request because of: No candidates were found for bloep *.

It would also be nice to see that this happens during a source resolve or build, now its kinda unclear that the backend is reporting this error.

@baszalmstra
Copy link
Contributor Author

Jep! I have another branch of pixi-build but waiting for a merge in rattler-build.

It would not be hard to make this more clear! I can donthat in another PR.

@tdejager
Copy link
Contributor

Sounds good!

@baszalmstra baszalmstra merged commit 4abcfd8 into prefix-dev:main Feb 4, 2025
28 checks passed
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.

3 participants