]> git.proxmox.com Git - cargo.git/commit
Auto merge of #10323 - ehuss:local-git-info, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 25 Jan 2022 15:50:45 +0000 (15:50 +0000)
committerbors <bors@rust-lang.org>
Tue, 25 Jan 2022 15:50:45 +0000 (15:50 +0000)
commitb5e2e397d9e05d9b9267f2eca5d3635d72c53548
treed67e9362530f1b255bd8979eeabe1f1293c6ad2a
parent9978fd72c83d0e7ac90b41dd9d743bbe4d3de394
parent295ea6d940f3c29b1f2f29a992acfb64186a829b
Auto merge of #10323 - ehuss:local-git-info, r=alexcrichton

Use local git info for version.

#10178 caused an unintended change where cargo is being built twice in rust-lang/rust's CI.  It is being built once as a CLI, and a second time for RLS.  The cause is the `CFG_COMMIT_HASH` environment variable changes between those two builds (it is set for the tool being built).

The solution here is to grab the git information from cargo's own build script. This is guaranteed to always be in the `src/tools/cargo` directory for both tools.

This should help save a minute or two in the dist builders.