Skip to content

Make CARGO_PKG_VERSION option_env!, rather than env! #1220

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

Merged
merged 1 commit into from
Jan 10, 2018

Conversation

acmcarther
Copy link
Contributor

This PR makes the "CARGO_PKG_VERSION" env variable optional, which facilitates crate compilation using tools other than Cargo.

Copy link
Contributor

@emilio emilio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe worth putting the git hash or something, but given it's only for the command line usage, I think this is fair, thanks!

@emilio
Copy link
Contributor

emilio commented Jan 10, 2018

@bors-servo r+

@bors-servo
Copy link

📌 Commit d302c13 has been approved by emilio

@bors-servo
Copy link

⌛ Testing commit d302c13 with merge ef26dea...

bors-servo pushed a commit that referenced this pull request Jan 10, 2018
Make CARGO_PKG_VERSION option_env!, rather than env!

This PR makes the "CARGO_PKG_VERSION" env variable optional, which facilitates crate compilation using tools other than Cargo.
@bors-servo
Copy link

💔 Test failed - status-travis

@acmcarther
Copy link
Contributor Author

Thanks for the ultra quick turnaround!

Is that test failure a flake?

@emilio
Copy link
Contributor

emilio commented Jan 10, 2018

Looks like it... Thanks a lot for the patch!

@emilio emilio merged commit 2b81788 into rust-lang:master Jan 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants