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 does not track env!("FOO") for rebuilding #3434

Closed
Mark-Simulacrum opened this issue Dec 20, 2016 · 2 comments
Closed

Cargo does not track env!("FOO") for rebuilding #3434

Mark-Simulacrum opened this issue Dec 20, 2016 · 2 comments

Comments

@Mark-Simulacrum
Copy link
Member

Given the code below, I would expect Cargo to rebuild the crate when FOO changes, but this currently does not happen. I don't know if Cargo currently has enough information to handle this, though.

fn foo() -> &'static str {
    env!("FOO")
}
@alexcrichton
Copy link
Member

Thanks for the report! I think this is a dupe of #2776, so I'm going to close it in favor of that

@Imberflur
Copy link
Contributor

For future readers, cargo now tracks these via #8421

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

3 participants