Skip to content

Commit ac2594f

Browse files
authored
Merge pull request #3186 from rust-lang/pa-sha1
Accept SHA1 keys and release 1.25.2
2 parents bb60b1e + 19801fc commit ac2594f

File tree

12 files changed

+66
-17
lines changed

12 files changed

+66
-17
lines changed

.github/workflows/centos-fmt-clippy-on-all.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ jobs:
8282
sh ./ci/raw_init.sh
8383
- name: Run shell checks
8484
run: |
85-
shellcheck -s dash -- rustup-init.sh
86-
git ls-files -- '*.sh' | xargs shellcheck -s dash -e SC1090
87-
git ls-files -- '*.bash' | xargs shellcheck -s bash -e SC1090
85+
shellcheck -x -s dash -- rustup-init.sh
86+
git ls-files -- '*.sh' | xargs shellcheck -x -s dash
87+
git ls-files -- '*.bash' | xargs shellcheck -x -s bash
8888
- name: Run formatting checks
8989
run: |
9090
cargo fmt --all --check

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Changelog
22

3+
## [1.25.2] - 2023-02-01
4+
5+
This version of Rustup changes the signature verification code to continue
6+
accepting Rust's release signature key, which previously caused warnings due to
7+
a time-based check.
8+
9+
Note that signature verification in Rustup is still an experimental feature,
10+
and there is intentionally no way to enforce signature verification due to the
11+
feature being incomplete.
12+
13+
Thanks go to:
14+
15+
- Pietro Albini
16+
- Daniel Silverstone
17+
18+
[1.25.2]: https://github.com/rust-lang/rustup/release/tag/1.25.2
19+
320
## [1.25.1] - 2022-07-12
421

522
This version of Rustup reverts a single PR from 1.25.1 and tidies a couple of internal

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ license = "MIT OR Apache-2.0"
99
name = "rustup"
1010
readme = "README.md"
1111
repository = "https://github.com/rust-lang/rustup"
12-
version = "1.25.1"
12+
version = "1.25.2"
1313

1414
[features]
1515
curl-backend = ["download/curl-backend"]

ci/actions-templates/centos-fmt-clippy-template.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ jobs:
8282
sh ./ci/raw_init.sh
8383
- name: Run shell checks
8484
run: |
85-
shellcheck -s dash -- rustup-init.sh
86-
git ls-files -- '*.sh' | xargs shellcheck -s dash -e SC1090
87-
git ls-files -- '*.bash' | xargs shellcheck -s bash -e SC1090
85+
shellcheck -x -s dash -- rustup-init.sh
86+
git ls-files -- '*.sh' | xargs shellcheck -x -s dash
87+
git ls-files -- '*.bash' | xargs shellcheck -x -s bash
8888
- name: Run formatting checks
8989
run: |
9090
cargo fmt --all --check

ci/cirrus-templates/script.bash

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/bash
22

33
set -ex
44

@@ -26,6 +26,7 @@ echo "Install Rustup using ./rustup-init.sh"
2626

2727
sh rustup-init.sh --default-toolchain=stable --profile=minimal -y
2828
# It's the equivalent of `source`
29+
# shellcheck source=src/cli/self_update/env.sh
2930
source "$HOME"/.cargo/env
3031

3132
echo "========="

ci/fetch-rust-docker.bash

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22

33
script_dir=$(cd "$(dirname "$0")" && pwd)
4+
# shellcheck source=ci/shared.bash
45
. "$script_dir/shared.bash"
56

67
set -e
@@ -39,6 +40,11 @@ case "$TARGET" in
3940
esac
4041

4142
master=$(git ls-remote "$RUST_REPO" refs/heads/master | cut -f1)
43+
# FIXME: bad hack to get a good working image for the 2023-02-01 release, this
44+
# will get broken for future releases
45+
if [[ "${image}" = "dist-android" ]]; then
46+
master="6d46b1ec8769fbbb3ac2a2cb12f0cad527135413"
47+
fi
4248
image_url="$ARTIFACTS_BASE_URL/$master/image-$image.txt"
4349
info="/tmp/image-$image.txt"
4450

ci/raw_init.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
set -ex
44

55
sh ./rustup-init.sh --default-toolchain none -y
6+
# shellcheck source=src/cli/self_update/env.sh
67
. "$HOME"/.cargo/env
78
rustup -Vv

download/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ authors = ["Brian Anderson <[email protected]>"]
44
edition = "2021"
55
license = "MIT OR Apache-2.0"
66
name = "download"
7-
version = "1.25.1"
7+
version = "1.25.2"
88

99
[features]
1010

rustup-init.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RUSTUP_UPDATE_ROOT="${RUSTUP_UPDATE_ROOT:-https://static.rust-lang.org/rustup}"
2525
#XXX: If you change anything here, please make the same changes in setup_mode.rs
2626
usage() {
2727
cat 1>&2 <<EOF
28-
rustup-init 1.25.1 (48d233f65 2022-07-12)
28+
rustup-init 1.25.2 (8c4dad73d 2023-02-01)
2929
The installer for rustup
3030
3131
USAGE:
@@ -590,7 +590,7 @@ check_help_for() {
590590
esac
591591

592592
for _arg in "$@"; do
593-
if ! "$_cmd" --help $_category | grep -q -- "$_arg"; then
593+
if ! "$_cmd" --help "$_category" | grep -q -- "$_arg"; then
594594
return 1
595595
fi
596596
done

0 commit comments

Comments
 (0)