5078 Commits

Author SHA1 Message Date
rami3l
e2d9e7edde dist(rustup-init/sh): update commit shasum 1.28.0 2025-03-02 13:13:35 +00:00
Dirkjan Ochtman
beda84eda2 Tweak SanitizedOutput style 2025-03-02 11:23:07 +00:00
rami3l
6b57e4b954 docs: update CHANGELOG for v1.28.0 release 2025-03-02 10:23:54 +00:00
Samuel Moelius
6744fb5206 Have mocked cargo better adhere to cargo conventions
Currently, when the mocked cargo command is passed
`--recursive-cargo-subcommand`, it runs:

```
cargo-foo --recursive-cargo
```

However, cargo subcommands are normally passed their subcommand name as
the first argument. Thus, one would expect the following to be run:

```
cargo-foo foo --recursive-cargo
```

This commit changes the mocked cargo command to do the latter. It also
adds a check to ensure that the "subcommand name as first argument"
behavior is respected.

This is, admittedly, a rather pedantic change.

Extracted from #4175
2025-03-02 02:57:50 +00:00
Samuel Moelius
f41403f5f2 Do not append EXE_SUFFIX in Config::cmd
Previously, `Config::cmd` would always append an `EXE_SUFFIX`. However,
this would produce an invalid path if the suffix was already present.

Extracted from #4175
2025-03-02 02:43:52 +00:00
Samuel Moelius
fa44b9bbba Add TryFrom<Output> for SanitizedOutput
`SanitizedOutput`s have `String` `stdout` and `stderr` fields. This
makes `SanitizedOutput`s easier to display than `Output`s.

This commit adds a `TryFrom<Output>` implementation for
`SanitizedOutput`. In this way, a test can run a command to produce an
`Output`, and from that `Output` produce a `SanitizedOutput`.

Extracted from #4175
2025-03-02 02:07:39 +00:00
rami3l
580c94fcda refactor(test): replace (before|after)_test_async() with TestProcess::_telemetry_guard 2025-03-01 14:46:04 +00:00
rami3l
3152eee44e style(rustup-init): reorganize imports 2025-03-01 14:46:04 +00:00
rami3l
956677a5f6 refactor(log): introduce GlobalTelemetryGuard 2025-03-01 14:46:04 +00:00
rami3l
1f5c82d590 refactor(process): rename TestProcess::_guard to _tracing_guard 2025-03-01 14:46:04 +00:00
renovate[bot]
238e472988 chore(deps): update opentelemetry 2025-03-01 14:46:04 +00:00
renovate[bot]
fe3fd884e6 fix(deps): update rust crate windows-registry to 0.5.0 2025-02-25 02:19:31 +00:00
renovate[bot]
52e6070c98 chore(deps): lock file maintenance 2025-02-24 08:19:40 +00:00
Tim Hutt
148486ba01 refactor: improve binary suffix stripping
Use `strip_suffix()` which is clearer, shorter, and won't break if the suffix is in the middle of the filename (unlikely, but still). I also renamed `binary_prefix` to something clearer, since it isn't actually a prefix; it's the main part.
2025-02-23 08:44:39 +00:00
rami3l
83d0901bd7 build: bump the codebase Language Edition to 2024 2025-02-23 01:21:48 +00:00
rami3l
e9883c45f5 style(cli/job): fix unsafe-op-in-unsafe-fn 2025-02-23 01:21:48 +00:00
rami3l
90f4482674 style(cli/log): use precise capturing when necessary
See
<https://doc.rust-lang.org/nightly/edition-guide/rust-2024/rpit-lifetime-capture.html>
for more details.
2025-02-23 01:21:48 +00:00
rami3l
c99abddb83 chore: use unsafe versions of (add|remove)_var() 2025-02-23 01:21:48 +00:00
rami3l
c1f4d719f4 style: remove redundant ref keywords
See
<https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>
for more details.
2025-02-23 01:21:48 +00:00
rami3l
635625e08b style: partially migrate away from if-let
Following
<https://users.rust-lang.org/t/rust-2024-compatibility-lint-and-the-if-let-temporary-scope/125969/5>,
I have manually audited all `if_let_rescope` cases and found out that
certain existing cases can be rewritten to make it clearer semantically.
So these migrations have been made in advance so that the only cases of
`if-let` remaining are false positives of this lint.

The crux of determining false positives here is that, according to
<https://github.com/rust-lang/rust/issues/133167>, `if let Some()`
and other similar cases where the `else` drop is not significant are
not affected by the Edition change.
2025-02-23 01:21:48 +00:00
rami3l
39526f913e style: format sources with the 2024 Style Edition 2025-02-20 23:41:17 +00:00
rami3l
e41930d239 chore: fix new clippy warnings 2025-02-20 23:41:17 +00:00
rami3l
0851758bb2 fix(deps): update rust crate pulldown-cmark to 0.13 2025-02-17 10:45:47 +00:00
renovate[bot]
a570be0986 chore(deps): lock file maintenance 2025-02-17 04:53:26 +00:00
rami3l
e9fef8f7d5 feat(rustup-init/sh): add env var to print arch detection result
Co-authored-by: onur-ozkan <work@onurozkan.dev>
2025-02-16 16:01:56 +00:00
rami3l
a2d5350173 refactor(component): reduce allocations in ComponentPart::encode() 2025-02-11 09:59:40 +00:00
rami3l
6606aa7c91 refactor(component)!: extract ComponentPartKind 2025-02-11 09:59:40 +00:00
rami3l
88dbc399e6 style(component): reduce right drift in ComponentPart::decode() 2025-02-11 09:59:40 +00:00
rami3l
185db77072 refactor(component)!: turn ComponentPart's fields into named ones 2025-02-11 09:59:40 +00:00
rami3l
6b1aa7d0f4 fix(dist/prefix): normalize path separators in REL_MANIFEST_DIR 2025-02-11 09:59:40 +00:00
rami3l
09f1aab569 fix(component): normalize path separators during ComponentPart::(en|de)code()
Co-authored-by: rhysd <lin90162@yahoo.co.jp>
2025-02-11 09:59:40 +00:00
renovate[bot]
967c12e4f0 chore(deps): lock file maintenance 2025-02-10 00:46:56 +00:00
renovate[bot]
2298aa58c9 chore(deps): lock file maintenance 2025-02-03 08:17:22 +00:00
Dirkjan Ochtman
5b5f401178 Upgrade to rand 0.9 2025-02-01 17:12:24 +00:00
renovate[bot]
069e64116e chore(deps): lock file maintenance 2025-01-27 06:10:48 +00:00
rami3l
cb3556eaf6 fix(ci/doc): fix typo in renovate datasource
It's very weird to me, but the `datasource` of `crates.io` is actually named `crate`.
See: <https://docs.renovatebot.com/modules/datasource/crate>
2025-01-22 06:09:01 +00:00
rami3l
817eae0498 ci(doc): make renovatebot bump locked mdbook 2025-01-22 00:04:59 +00:00
rami3l
3ce78f83e4 ci(doc): pin mdbook to 0.4.43 2025-01-22 00:04:59 +00:00
renovate[bot]
92663bc692 chore(deps): lock file maintenance 2025-01-20 07:42:17 +00:00
rami3l
1f06e3b31d ci(schedule): run cron tasks more times per week 2025-01-18 10:33:57 +00:00
rami3l
a0417ec5d3 ci(schedule): promote to use the stable job list 2025-01-18 10:33:57 +00:00
rami3l
fa4ae32055 ci(doc): fix stable build of user-guide 2025-01-17 09:06:06 +00:00
rami3l
bf28325de1 ci(linux): enable the full test suite for aarch64-unknown-linux-gnu 2025-01-17 09:03:35 +00:00
rami3l
80329925ec ci(linux): use public ARM64 Linux runners 2025-01-17 09:03:35 +00:00
rami3l
69f8d66bc2 ci(deploy-docs): merge with test-docs 2025-01-17 07:41:04 +00:00
rami3l
fe9dce78ba ci(deploy-docs): enable on PR without uploads 2025-01-17 07:41:04 +00:00
rami3l
31cb59503f ci(deploy-docs): build one book per workflow step 2025-01-17 07:41:04 +00:00
rami3l
e8248482f5 ci(deploy-docs): install mdbook with install-action 2025-01-17 07:41:04 +00:00
Jakub Beránek
3fc52e98e6 Change installation of dependencies for Aarch64 Dockerfile 2025-01-17 00:52:27 +00:00
Jakub Beránek
b7cd4292c6 Run Aarch64 jobs on PRs 2025-01-17 00:52:27 +00:00