rust/src/ci/scripts
bors eac3c7c5bd Auto merge of #82208 - jyn514:rustfmt-subtree, r=Mark-Simulacrum
Convert rustfmt from a submodule to a subtree

r? `@calebcartwright` cc `@Manishearth` `@Mark-Simulacrum`

The motivation is that submodule updates cause rustfmt to not be available on nightly a lot; most recently it was unavailable for over 10 days, causing the beta release to be delayed. Additionally this is much less work on the part of the rustfmt maintainers to keep the rustfmt compiling, since now people making breaking changes will be responsible for fixing them.

I kept the rustfmt git history so it looks like there are thousands of commits. The important commits are https://github.com/rust-lang/rust/compare/851dee3af9404bf399c3c4ffefe5105edb3debad~..pull/82208/head. This adds about 10 MB of git history, which is not terribly much compared to the 702 MB that already exist.

- Add `src/tools/rustfmt` to `x.py check`
- Fix CRLF issues with rustfmt tests (see commit for details)
- Use `rustc_private` instead of crates.io dependencies

  This was already switched upstream and would have landed in the next submodule bump anyway. This just updates Cargo.lock for rust-lang/rust.

- Add `yansi-term` to the list of allowed dependencies.

  This is a false positive - rustc doesn't actually use it, only rustfmt, but because it's activated by the cargo feature of a dependency, tidy gets confused. It's fairly innocuous in any case, it's used for color printing.
  This would have happened in the next submodule bump.

- Remove rustfmt from the list of toolstate tools.
- Give a hard error if testing or building rustfmt fails.
-  Update log to 0.4.14

   This avoids a warning about semicolons in macros; see the commit for details.

- Don't add tools to the sysroot when they finish building.

  This is the only change that could be considered a regression - this avoids a "colliding StableCrateId" error due to a bug in resolve (https://github.com/rust-lang/rust/issues/56935). The regression is that this rebuilds dependencies more often than strictly necessary. See the commit for details.

Fixes https://github.com/rust-lang/rust/issues/85226 (permanently). Closes https://github.com/rust-lang/rust/issues/82385. Helps with https://github.com/rust-lang/rust/issues/70651. Helps with https://github.com/rust-lang/rust/issues/80639.
2021-05-15 14:55:56 +00:00
..
checkout-submodules.sh ci: extract checking out submodules into a script 2019-10-25 16:08:33 +02:00
clean-disk.sh Clean out some default-installed directories 2020-02-18 11:34:59 +01:00
collect-cpu-stats.sh ci: extract collecting cpu stats into a script 2019-11-12 11:06:11 +01:00
disable-git-crlf-conversion.sh ci: extract disabling git crlf handling into a script 2019-10-25 16:03:11 +02:00
dump-environment.sh ci: extract dumping the environment into a script 2019-10-25 16:03:04 +02:00
enable-docker-ipv6.sh ci: fix tidy 2019-10-25 16:08:39 +02:00
install-awscli.sh Fix install-awscli.sh error in CI. 2021-02-05 12:17:50 +01:00
install-clang.sh Rollup merge of #84911 - Mark-Simulacrum:retry-clang, r=pietroalbini 2021-05-07 15:20:28 +09:00
install-mingw.sh Adds a GitHub Actions CI build for aarch64-pc-windows-msvc via cross-compilation on an x86_64 host. 2020-09-25 15:08:18 -07:00
install-msys2.sh ci: only copy python.exe to python3.exe if the latter does not exist 2021-02-04 21:24:41 +01:00
install-ninja.sh ci: reuse the mirrors base url from shared.sh in scripts 2019-10-25 16:08:41 +02:00
install-sccache.sh ci: extract installing sccache into a script 2019-10-25 16:03:06 +02:00
install-wix.sh ci: fix wrong path for wix being set 2019-10-28 15:09:18 +01:00
run-build-from-ci.sh ci: extract running the build into a script 2019-11-12 11:06:11 +01:00
select-xcode.sh Add a cross-compiling aarch64-apple-darwin CI builder 2020-10-01 07:53:38 -04:00
setup-environment.sh ci: add github actions configuration 2020-03-24 15:36:07 +01:00
should-skip-this.sh ci(should-skip-this): only check commits when skip rule enabled 2021-05-14 21:55:19 -05:00
symlink-build-dir.sh ci: avoid moving the build directory on GHA 2020-09-10 12:54:29 +02:00
upload-artifacts.sh ci: move toolstates.json to /tmp/toolstate/ and docker mount it 2019-10-30 19:41:22 +01:00
verify-channel.sh make verify-channel.sh compatible with macOS 2021-05-12 12:15:39 +02:00
verify-line-endings.sh ci: extract verifying line endings into a script 2019-10-25 16:08:35 +02:00