Skip to content

Commit 7824ede

Browse files
committed
Auto merge of #138817 - cuviper:beta-next, r=cuviper
[beta] backports - CI: Stop /msys64/bin from being prepended to PATH in msys2 shell #136815 - Install licenses into `share/doc/rust/licenses` #138412 r? cuviper
2 parents 8c7969a + 7fc74cd commit 7824ede

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

.github/workflows/ci.yml

+5
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,11 @@ jobs:
187187
Remove-Item -Force -Recurse $kits\$kind\$sdk_version -ErrorAction Continue
188188
}
189189
190+
# Show the environment just before we run the build
191+
# This makes it easier to diagnose problems with the above install scripts.
192+
- name: show the current environment
193+
run: src/ci/scripts/dump-environment.sh
194+
190195
- name: run the build
191196
# Redirect stderr to stdout to avoid reordering the two streams in the GHA logs.
192197
run: src/ci/scripts/run-build-from-ci.sh 2>&1

src/bootstrap/src/core/build_steps/dist.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ impl Step for Rustc {
515515

516516
// The REUSE-managed license files
517517
let license = |path: &Path| {
518-
builder.install(path, &image.join("share/doc/rust/licences"), 0o644);
518+
builder.install(path, &image.join("share/doc/rust/licenses"), 0o644);
519519
};
520520
for entry in t!(std::fs::read_dir(builder.src.join("LICENSES"))).flatten() {
521521
license(&entry.path());

src/ci/scripts/install-mingw.sh

+6
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ if isWindows && isKnownToBeMingwBuild; then
3232
;;
3333
esac
3434

35+
# Stop /msys64/bin from being prepended to PATH by adding the bin directory manually.
36+
# Note that this intentionally uses a Windows style path instead of the msys2 path to
37+
# avoid being auto-translated into `/usr/bin`, which will not have the desired effect.
38+
msys2Path="c:/msys64"
39+
ciCommandAddPath "${msys2Path}/usr/bin"
40+
3541
mingw_dir="mingw${bits}"
3642

3743
curl -o mingw.7z "${MIRRORS_BASE}/${mingw_archive}"

0 commit comments

Comments
 (0)