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

Allow specifying additional args to cargo install #19

Closed
dmikusa opened this issue Mar 23, 2021 · 0 comments · Fixed by #35
Closed

Allow specifying additional args to cargo install #19

dmikusa opened this issue Mar 23, 2021 · 0 comments · Fixed by #35

Comments

@dmikusa
Copy link
Contributor

dmikusa commented Mar 23, 2021

Right now we have a default set of arguments used for cargo install.

https://github.com/paketo-community/cargo-install/blob/main/cargo/cli_runner.go#L48-L53

Ex: cargo install --color=never --path=. --root=<destination layer>

This works fine for simple projects but doesn't work when you have multiple workspaces.

This issue is to support customizing these arguments so one can easily include the arguments required to build a project, such as

  • --path=./todo (to build a single project in a workspace).
  • --bins to build all binaries
  • --bin=foo to build the foo binary
  • -v for verbose output
  • --frozen, --locked or --offline for customizing if Cargo will access the network

Users should not be able to override --color=never and --root=<destination layer>. These are required for the buildpack to work properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant