Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dist: bump rustup version to 1.27.1 #3773

Merged
merged 3 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,75 @@
# Changelog

## [1.27.1] - 2024-04-14

This new Rustup release involves some minor bug fixes.

The headlines for this release are:

1. Prebuilt Rustup binaries should be working on older macOS versions again.
2. `rustup-init` will no longer fail when `fish` is installed but `~/.config/fish/conf.d` hasn't been created.
3. Regressions regarding symlinked `RUSTUP_HOME/(toolchains|downloads|tmp)` have been addressed.

Since the release of 1.27.0, the project has welcomed a total of 7 new contributors.
Many thanks for your hard work, and we hope to see you again!

### Added

- Added the logging of `RUSTUP_UPDATE_ROOT` and `RUSTUP_DIST_(SERVER|ROOT)` when `RUSTUP_DEBUG` is set [pr#3722]

### Changed

- Ensured that CI builds target macOS 10.12+ on x64 and macOS 11.0+ on arm64 [pr#3710]
- Fixed an error when writing to rcfiles by ensuring the creation of their parent dir(s) first [pr#3712]
- Fixed unexpected errors when `RUSTUP_HOME/(toolchains|downloads|tmp)` is symlinked [pr#3742] [pr#3754]
- Fixed an unexpected error when removing a component by component name with explicit target triple [pr#3601]
- Changed `RUSTUP_WINDOWS_PATH_ADD_BIN` to be false by default [pr#3703]
- Fixed incorrect color state after `ColorableTerminal::reset` [pr#3711]
- Replaced `.` with `source` in fish shell's `source_string` [pr#3715]
- Fixed "component add" error message format [pr#3724]
- Fixed file paths in CI-generated `*.sha256` files on *nix [pr#3730]
- Removed an unnecessary debug print [pr#3734]
- Disabled the "doc opening" output on `rustup doc --path` [pr#3748]
- Fixed the update of `DisplayVersion` in the Windows registry on `rustup self update` [pr#3770]
- Bumped a lot of dependencies to their latest versions [pr#renovate-bot]

Thanks go to:

- Anas (0x61nas)
- cuiyourong (cuiyourong)
- Dirkjan Ochtman (djc)
- Eric Huss (ehuss)
- eth3lbert (eth3lbert)
- hev (heiher)
- klensy (klensy)
- Chih Wang (ongchi)
- Adam (pie-flavor)
- rami3l (rami3l)
- Robert (rben01)
- Robert Collins (rbtcollins)
- Sun Bin (shandongbinzhou)
- Samuel Moelius (smoelius)
- vpochapuis (vpochapuis)
- Renovate Bot (renovate)

**Full Changelog**: https://github.com/rust-lang/rustup/compare/1.27.0...1.27.1

[1.27.1]: https://github.com/rust-lang/rustup/releases/tag/1.27.1
[pr#3601]: https://github.com/rust-lang/rustup/pull/3601
[pr#3703]: https://github.com/rust-lang/rustup/pull/3703
[pr#3711]: https://github.com/rust-lang/rustup/pull/3711
[pr#3715]: https://github.com/rust-lang/rustup/pull/3715
[pr#3710]: https://github.com/rust-lang/rustup/pull/3710
[pr#3712]: https://github.com/rust-lang/rustup/pull/3712
[pr#3722]: https://github.com/rust-lang/rustup/pull/3722
[pr#3724]: https://github.com/rust-lang/rustup/pull/3724
[pr#3730]: https://github.com/rust-lang/rustup/pull/3730
[pr#3734]: https://github.com/rust-lang/rustup/pull/3734
[pr#3748]: https://github.com/rust-lang/rustup/pull/3748
[pr#3742]: https://github.com/rust-lang/rustup/pull/3742
[pr#3754]: https://github.com/rust-lang/rustup/pull/3754
[pr#3770]: https://github.com/rust-lang/rustup/pull/3770

## [1.27.0] - 2024-03-08

This long-awaited Rustup release has gathered all the new features and fixes since April 2023.
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rustup"
version = "1.27.0"
version = "1.27.1"
edition = "2021"
description = "Manage multiple rust installations with ease"
homepage = "https://github.com/rust-lang/rustup"
Expand Down
45 changes: 26 additions & 19 deletions ci/changelog_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,32 @@
import subprocess
import sys

USAGE = """
djc marked this conversation as resolved.
Show resolved Hide resolved
Usage:
python changelog_helper.py replace-nums CHANGELOG_MARKDOWN
Replace Rustup PR numbers or links with `[pr#1234]`, moving the actual links to the bottom

python changelog_helper.py usernames GITHUB_GENERATED_CHANGELOG
Generate a Markdown list of contributors to be pasted below the line `Thanks go to:`
A logged-in GitHub CLI (https://cli.github.com) is required for this subcommand
For a GitHub-generated changelog, see https://github.com/rust-lang/rustup/releases/new
"""

BOTS = {"renovate": "Renovate Bot"}


def extract_usernames(text):
return sorted(set(re.findall(r"@([\w-]+)", text)), key=str.casefold)
return sorted(
set(re.findall(r"@([\w-]+)", text)),
key=lambda name: (name in BOTS, str.casefold(name)),
)


def github_name(username):
# url = f"https://api.github.com/users/{username}"
# response = urlopen(url)
if username == "renovate":
return "Renovate Bot"
if username in BOTS:
return BOTS[username]
try:
response = subprocess.check_output(
[
Expand All @@ -26,7 +42,7 @@ def github_name(username):
]
)
data = json.loads(response)
return data["name"]
return data["name"] or username
except Exception as e:
print("An error occurred:", str(e))

Expand All @@ -42,16 +58,7 @@ def read_file(file_name):


def help():
print("Usage:")
print(" python changelog_helper.py usernames GITHUB_GENERATED_CHANGELOG")
print(" python changelog_helper.py replace-nums CHANGELOG_MARKDOWN")
print()
print(
"A logged-in GitHub CLI (https://cli.github.com) is required for the `usernames` subcommand"
)
print(
"For a GitHub-generated changelog, see https://github.com/rust-lang/rustup/releases/new"
)
print(USAGE)
sys.exit(1)


Expand All @@ -72,11 +79,11 @@ def main():
footer = ""
if not content:
return
for match in re.findall(r"(?<=#)(\d+)", content):
# Replace issue number with fully-qualified link
link = f"[pr#{match}]"
footer += f"{link}: https://github.com/rust-lang/rustup/pull/{match}\n"
content = content.replace(f"#{match}", link)
issue_pat = r"(#|https://github\.com/rust-lang/rustup/pull/)(\d+)"
for prefix, num in re.findall(issue_pat, content):
link = f"[pr#{num}]"
footer += f"{link}: https://github.com/rust-lang/rustup/pull/{num}\n"
content = content.replace(prefix + num, link)
print(f"{content}\n{footer}")
else:
help()
Expand Down
2 changes: 1 addition & 1 deletion download/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "download"
version = "1.27.0"
version = "1.27.1"
edition = "2021"
license = "MIT OR Apache-2.0"

Expand Down
Loading