-
Notifications
You must be signed in to change notification settings - Fork 3
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
Detect fails with an error if no Cargo.lock or Cargo.toml #91
Comments
Can you expand on the problem here? What's the The short answer is that the buildpack looks for those files because they're required to run Thanks |
Hey, the use case is to be able to use a single Here is how to reproduce: Create a custom builder (packeto full + packeto-community/python + packeto-community/rust).
Try removing the rust in the repo and you dont have the same behaviour. |
Oh, ok. I follow now. That is an issue I've hit and something I'm going to be changing. I'm doing some work on the cargo-install buildpack as I write this and that fix should be part of the workstream. I can't give you a definitive date on when that'll be ready, but I'm hoping I'll have it all sorted in a couple of weeks. If you need an immediate fix, I think you can just change |
Wrap the error in packit.Fail during detect
Thanks, I just pushed a PR to fix this, I think it should works as expected. |
Wrap the error in packit.Fail during the detection phase to mute the error when chaining multiple buildpacks.
Wrap the error in packit.Fail during the detection phase to mute the error when chaining multiple buildpacks.
Detect fails with an error if no Cargo.lock or Cargo.toml and exit with a code 21.
If I remove
packeto-comunity/rust
from theorder
in the builder.toml, it exit with a code 20.I am not sure why, is it required to wrap the error with
packit.Fail
to mute the error during detection ?https://github.com/paketo-buildpacks/go-mod-vendor/blob/main/detect.go#L27
The text was updated successfully, but these errors were encountered: