-
Notifications
You must be signed in to change notification settings - Fork 401
fix: enhance error handling for path supported manifests #5242
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
base: main
Are you sure you want to change the base?
fix: enhance error handling for path supported manifests #5242
Conversation
… provide helpful suggestions
|
What would be the downside of not erroring out but just detecting the package.xml and running with it? This type of error is one where Im always like, "yeah duh, just do that yourself". |
yeah - sounds more user friendly. On the other hand, if there is both |
|
Yeah that makes sense, if it's ambigous we should error. |
|
I agree that making a best guess but erroring in the ambiguous case is a good idea. If there's multiple manifests there should be a specialized error message explaining the ambiguity imo. |
|
We actually reverted that right before we merged the We need to keep a baked in map that maps manifests to backends which is just a complex maintainence issue. There is still the plan to not autodetect any format other than real pixi manifests (pixi.toml, pyproject.toml) and allow users to specify the backend they want to use. ros-package = { path = "pkg", backend = "pixi-build-ros==1.2.3"}My robotics "just make it work" brain hates me for this, but the Pixi maintainer brain is pretty anxious about the maintainence and breaking changes. What do you think @baszalmstra. |
|
I see your point but we currently do already "soft support" this if you point it directly to a If this is just a stop-gap solution which we will remove later in favor of your example: ros-package = { path = "pkg", backend = "pixi-build-ros==1.2.3"}then I would either also just support pointing to a parent directory, or modify the error to indicate its a stop-gap solution or be explicit about why the user has to be explicit about this. I can see the issue where conda-forge doesnt yet contain the ros-backend though, maybe we should just start adding it there? |
|
I've changed it to be more explicit in the error, why it should change. I was playing with adding the package.xml in dir discovery but it opens a can of worms we're going to replace anyway. |
Description
Fixes prefix-dev/pixi-build-backends#515
Now it errors with:
Pretty verbose but hopefuly it helps the user.
AI Disclosure
Tools: Claude
Checklist: