Commit Graph

7 Commits

Author SHA1 Message Date
David Tolnay
36731f8f53
Disambiguate symlink argument names
Mirrors https://github.com/rust-lang/rust/pull/79060.
2020-11-14 15:19:05 -08:00
David Tolnay
e3cdbd4ccd
Fix testing for symlink denied on initial builds 2020-11-14 15:11:52 -08:00
Jan Haller
595ac27632 Fix Windows symlink test to give reproducible error messages
After a `git clone -c core.symlinks=false` and `cargo test`, the script outputs a Git error as expected.
When running `cargo test` again, the error message changes to "symlink support needs to be enabled".

The test is done for an already existing directory, and the Windows mklink command _fails_ when the symlink exists already.
This commit deletes the link prior to the symlink creation.
2020-10-13 22:48:08 +02:00
David Tolnay
c9c197bff9
Try to detect symlinking disabled on Windows 2020-10-11 03:49:37 -07:00
David Tolnay
a00021934e
Emphasize difference between git builds vs crates.io 2020-10-11 03:10:34 -07:00
David Tolnay
188d9f1256
Display usable clone command on symlink error 2020-10-11 02:37:51 -07:00
David Tolnay
65b66f2091
Factor out common symlink check build script 2020-10-11 02:36:16 -07:00