-
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
Support cargo build
#162
Comments
@edude03 ^^ FYI. |
I'd like it if we still supported cargo install - just for building quick containers with tools - for example we use rover, so being able to do cargo install github.com/apollograph/rover is great.
Seems fine to me.
Build has the "more correct" behaviour around using the lock file so I'd say build. |
Thanks for the feedback!
To clarify, we wouldn't remove the support for installing third-party tools with The change would be to how the primary application, i.e. your source code, gets built and installed. Does that change your feedback at all? |
(Sorry for the long delay) that makes sense and sounds like the right way to do it :) |
Right now,
cargo install
is used to build and install the application binaries. Runningcargo install
andcargo build
are not quite the same though. There are some subtle differences like build will use the lock file by default, build also handles workspaces differently, and build allows you to build tests.The main trick will be running
cargo build
and then finding the right binaries to "install". You get that for free withcargo install
. You can find the binaries by reading the cargo metadata, which we're already doing for some things.Open questions:
cargo build
andcargo install
? or should we replacecargo install
withcargo build
?BP_CARGO_COMMAND
.The text was updated successfully, but these errors were encountered: