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

cargo build should track environment variables #209

Closed
ju1ius opened this issue Nov 30, 2022 · 0 comments · Fixed by #210
Closed

cargo build should track environment variables #209

ju1ius opened this issue Nov 30, 2022 · 0 comments · Fixed by #210

Comments

@ju1ius
Copy link
Contributor

ju1ius commented Nov 30, 2022

Hi,

Currently when we want to switch the PHP version for a build, we have to run

cargo clean
PATH="/path/to/build:${PATH}" cargo build

Which wipes out the entire compilation cache.

The build script should use cargo:rerun-if-env-changed=PATH so that we can just do:

PATH="/path/to/build:${PATH}" cargo build

and cargo rebuilds only what's needed, not the entire dependency tree.

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

Successfully merging a pull request may close this issue.

1 participant