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

workflow to separate dependency install step from the build step #3615

Closed
gregwebs opened this issue Jan 30, 2017 · 6 comments
Closed

workflow to separate dependency install step from the build step #3615

gregwebs opened this issue Jan 30, 2017 · 6 comments

Comments

@gregwebs
Copy link

I think cargo has great defaults, but it isn't meeting the needs for all my workflows.

On a continous integration server, to setup my cache I want to run cargo build --only-dependencies, which does not attempt to compile my program and instead just installs the Cargo.lock dependencies.

This workflow is supported by Haskell's stack tool (which Cargo learn other things from also, including docker integration and snapshots).

I apologize if there is already a way to achieve this functionality: I am not an experienced Cargo user.

@KalitaAlexey
Copy link
Contributor

@gregwebs,
What do you mean under install the Cargo.lock dependencies?
Do you want them to be downloaded and that's all?

@gregwebs
Copy link
Author

That would be a different workflow, perhaps --download-only. I want to build all the library dependencies also.

@KalitaAlexey
Copy link
Contributor

Look at #3567

@gregwebs
Copy link
Author

oh, perfect! That didn't turn up in my initial search

@gregwebs
Copy link
Author

Actually, I will keep this open since the PR is still open (maintainers may change according to their worfklows).

@gregwebs gregwebs reopened this Jan 30, 2017
@gregwebs
Copy link
Author

Ahh, I see there is already an issue too. Sorry, I probably should have been able to find these in my searching.
#2644

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

No branches or pull requests

2 participants