eth3lbert
fceb9d3a75
test: migrate inheritable_workspace_fields to snapbox
2024-07-04 06:16:27 +08:00
bors
bff8a08165
Auto merge of #14173 - eth3lbert:snapbox-f, r=weihanglo
...
test: mirgate fix* and future_incompat_report to snapbox
### What does this PR try to resolve?
Part of https://github.com/rust-lang/cargo/issues/14039 .
Migrate following to snapbox:
- `tests/testsuite/fix.rs`
- `tests/testsuite/fix_n_times.rs`
- `tests/testsuite/future_incompat_report.rs`
2024-07-02 16:20:49 +00:00
bors
e5e36fd2a4
Auto merge of #14175 - heisen-li:edition_err, r=weihanglo
...
test:migrate `edition/error` to snapbox
### What does this PR try to resolve?
The last two documents:
```
tests/testsuite/edition.rs
tests/testsuite/error.rs
```
part of #14039
2024-07-02 15:44:02 +00:00
heisen-li
7254452b4e
test: migrate edition to snapbox
2024-07-02 12:22:29 +08:00
bors
6bd64c41f8
Auto merge of #14174 - rust-lang:renovate/compatible, r=epage
...
chore(deps): update compatible
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [annotate-snippets](https://togithub.com/rust-lang/annotate-snippets-rs ) | workspace.dependencies | patch | `0.11.3` -> `0.11.4` |
| [clap](https://togithub.com/clap-rs/clap ) | workspace.dependencies | patch | `4.5.6` -> `4.5.8` |
| [curl-sys](https://togithub.com/alexcrichton/curl-rust ) | workspace.dependencies | patch | `0.4.72+curl-8.6.0` -> `0.4.73` |
| [libloading](https://togithub.com/nagisa/rust_libloading ) | workspace.dependencies | patch | `0.8.3` -> `0.8.4` |
| [memchr](https://togithub.com/BurntSushi/memchr ) | workspace.dependencies | patch | `2.7.2` -> `2.7.4` |
| [proptest](https://proptest-rs.github.io/proptest/proptest/index.html ) ([source](https://togithub.com/proptest-rs/proptest )) | workspace.dependencies | minor | `1.4.0` -> `1.5.0` |
| [serde_json](https://togithub.com/serde-rs/json ) | workspace.dependencies | patch | `1.0.117` -> `1.0.120` |
| [snapbox](https://togithub.com/assert-rs/trycmd/tree/main/crates/snapbox ) ([source](https://togithub.com/assert-rs/trycmd )) | workspace.dependencies | patch | `0.6.9` -> `0.6.10` |
| [url](https://togithub.com/servo/rust-url ) | workspace.dependencies | patch | `2.5.0` -> `2.5.2` |
---
### Release Notes
<details>
<summary>rust-lang/annotate-snippets-rs (annotate-snippets)</summary>
### [`v0.11.4`](https://togithub.com/rust-lang/annotate-snippets-rs/blob/HEAD/CHANGELOG.md#0114---2024-06-15 )
[Compare Source](https://togithub.com/rust-lang/annotate-snippets-rs/compare/0.11.3...0.11.4 )
##### Fixes
- Annotations for `\r\n` are now correctly handled [#​131](https://togithub.com/rust-lang/annotate-snippets-rs/pull/131 )
</details>
<details>
<summary>clap-rs/clap (clap)</summary>
### [`v4.5.8`](https://togithub.com/clap-rs/clap/blob/HEAD/CHANGELOG.md#458---2024-06-28 )
[Compare Source](https://togithub.com/clap-rs/clap/compare/v4.5.7...v4.5.8 )
##### Fixes
- Reduce extra flushes
### [`v4.5.7`](https://togithub.com/clap-rs/clap/blob/HEAD/CHANGELOG.md#457---2024-06-10 )
[Compare Source](https://togithub.com/clap-rs/clap/compare/v4.5.6...v4.5.7 )
##### Fixes
- Clean up error message when too few arguments for `num_args`
</details>
<details>
<summary>alexcrichton/curl-rust (curl-sys)</summary>
### [`v0.4.73`](https://togithub.com/alexcrichton/curl-rust/compare/curl-sys-0.4.72...curl-sys-0.4.73 )
[Compare Source](https://togithub.com/alexcrichton/curl-rust/compare/curl-sys-0.4.72...curl-sys-0.4.73 )
</details>
<details>
<summary>nagisa/rust_libloading (libloading)</summary>
### [`v0.8.4`](https://togithub.com/nagisa/rust_libloading/compare/0.8.3...0.8.4 )
[Compare Source](https://togithub.com/nagisa/rust_libloading/compare/0.8.3...0.8.4 )
</details>
<details>
<summary>BurntSushi/memchr (memchr)</summary>
### [`v2.7.4`](https://togithub.com/BurntSushi/memchr/compare/2.7.3...2.7.4 )
[Compare Source](https://togithub.com/BurntSushi/memchr/compare/2.7.3...2.7.4 )
### [`v2.7.3`](https://togithub.com/BurntSushi/memchr/compare/2.7.2...2.7.3 )
[Compare Source](https://togithub.com/BurntSushi/memchr/compare/2.7.2...2.7.3 )
</details>
<details>
<summary>proptest-rs/proptest (proptest)</summary>
### [`v1.5.0`](https://togithub.com/proptest-rs/proptest/compare/v1.4.0...v1.5.0 )
[Compare Source](https://togithub.com/proptest-rs/proptest/compare/v1.4.0...v1.5.0 )
</details>
<details>
<summary>serde-rs/json (serde_json)</summary>
### [`v1.0.120`](https://togithub.com/serde-rs/json/releases/tag/v1.0.120 )
[Compare Source](https://togithub.com/serde-rs/json/compare/v1.0.119...v1.0.120 )
- Correctly specify required version of `indexmap` dependency ([#​1152](https://togithub.com/serde-rs/json/issues/1152 ), thanks [`@​cforycki](https://togithub.com/cforycki ))`
### [`v1.0.119`](https://togithub.com/serde-rs/json/releases/tag/v1.0.119 )
[Compare Source](https://togithub.com/serde-rs/json/compare/v1.0.118...v1.0.119 )
- Add `serde_json::Map::shift_insert` ([#​1149](https://togithub.com/serde-rs/json/issues/1149 ), thanks [`@​joshka](https://togithub.com/joshka ))`
### [`v1.0.118`](https://togithub.com/serde-rs/json/releases/tag/v1.0.118 )
[Compare Source](https://togithub.com/serde-rs/json/compare/v1.0.117...v1.0.118 )
- Implement Hash for serde_json::Value ([#​1127](https://togithub.com/serde-rs/json/issues/1127 ), thanks [`@​edwardycl](https://togithub.com/edwardycl ))`
</details>
<details>
<summary>assert-rs/trycmd (snapbox)</summary>
### [`v0.6.10`](https://togithub.com/assert-rs/trycmd/compare/snapbox-v0.6.9...snapbox-v0.6.10 )
[Compare Source](https://togithub.com/assert-rs/trycmd/compare/snapbox-v0.6.9...snapbox-v0.6.10 )
</details>
<details>
<summary>servo/rust-url (url)</summary>
### [`v2.5.2`](https://togithub.com/servo/rust-url/releases/tag/v2.5.2 )
[Compare Source](https://togithub.com/servo/rust-url/compare/v2.5.1...v2.5.2 )
#### What's Changed
- fix panic on `xn--55555577` by [`@​Byron](https://togithub.com/Byron )` in [https://github.com/servo/rust-url/pull/940 ](https://togithub.com/servo/rust-url/pull/940 )
- Update idna to 1.0.1 by [`@​valenting](https://togithub.com/valenting )` in [https://github.com/servo/rust-url/pull/945 ](https://togithub.com/servo/rust-url/pull/945 )
- Revert "Reimplement idna on top of ICU4X" by [`@​valenting](https://togithub.com/valenting )` in [https://github.com/servo/rust-url/pull/946 ](https://togithub.com/servo/rust-url/pull/946 )
This release reverts recent IDNA changes and the MSRV back to rust 1.56
The idna v1.0.1 crate now lives on the [idna-v1x](https://togithub.com/servo/rust-url/tree/idna-v1x ) branch.
**Full Changelog**: https://github.com/servo/rust-url/compare/v2.5.1...v2.5.2
### [`v2.5.1`](https://togithub.com/servo/rust-url/releases/tag/v2.5.1 )
[Compare Source](https://togithub.com/servo/rust-url/compare/v2.5.0...v2.5.1 )
#### What's Changed
- Be more detailed in documentation of set_query by [`@​philippeitis](https://togithub.com/philippeitis )` in [https://github.com/servo/rust-url/pull/737 ](https://togithub.com/servo/rust-url/pull/737 )
- perf(punycode): avoid double allocation in decode_to_string by [`@​bishopcheckmate](https://togithub.com/bishopcheckmate )` in [https://github.com/servo/rust-url/pull/894 ](https://togithub.com/servo/rust-url/pull/894 )
- Use SPECIAL_PATH_SEGMENT when encoding path in from_file_path by [`@​valenting](https://togithub.com/valenting )` in [https://github.com/servo/rust-url/pull/902 ](https://togithub.com/servo/rust-url/pull/902 )
- Add dependabot by [`@​oriontvv](https://togithub.com/oriontvv )` in [https://github.com/servo/rust-url/pull/903 ](https://togithub.com/servo/rust-url/pull/903 )
- Bump codecov/codecov-action from 3 to 4 by [`@​dependabot](https://togithub.com/dependabot )` in [https://github.com/servo/rust-url/pull/904 ](https://togithub.com/servo/rust-url/pull/904 )
- Bump actions/upload-artifact from 2 to 4 by [`@​dependabot](https://togithub.com/dependabot )` in [https://github.com/servo/rust-url/pull/905 ](https://togithub.com/servo/rust-url/pull/905 )
- Bump actions/checkout from 3 to 4 by [`@​dependabot](https://togithub.com/dependabot )` in [https://github.com/servo/rust-url/pull/906 ](https://togithub.com/servo/rust-url/pull/906 )
- Fix non-base64 data URLs with % characters not followed by hex digits by [`@​SmaugPool](https://togithub.com/SmaugPool )` in [https://github.com/servo/rust-url/pull/797 ](https://togithub.com/servo/rust-url/pull/797 )
- Rename `master` branch to `main` by [`@​mrobinson](https://togithub.com/mrobinson )` in [https://github.com/servo/rust-url/pull/914 ](https://togithub.com/servo/rust-url/pull/914 )
- Add bench for to_ascii on an already-Punycode name by [`@​hsivonen](https://togithub.com/hsivonen )` in [https://github.com/servo/rust-url/pull/915 ](https://togithub.com/servo/rust-url/pull/915 )
- Update URLs by [`@​atouchet](https://togithub.com/atouchet )` in [https://github.com/servo/rust-url/pull/916 ](https://togithub.com/servo/rust-url/pull/916 )
- Fix lint by [`@​valenting](https://togithub.com/valenting )` in [https://github.com/servo/rust-url/pull/920 ](https://togithub.com/servo/rust-url/pull/920 )
- Fix multiple issues on wasm32, and runs url tests in CI by [`@​micolous](https://togithub.com/micolous )` in [https://github.com/servo/rust-url/pull/886 ](https://togithub.com/servo/rust-url/pull/886 )
- Non-special URLs can have their paths erased by [`@​DylanOToole2](https://togithub.com/DylanOToole2 )` in [https://github.com/servo/rust-url/pull/921 ](https://togithub.com/servo/rust-url/pull/921 )
- docs: document SyntaxViolation variants, remove bare URLs by [`@​aatifsyed](https://togithub.com/aatifsyed )` in [https://github.com/servo/rust-url/pull/924 ](https://togithub.com/servo/rust-url/pull/924 )
- docs: Document possible replacements of the base URL by [`@​mo8it](https://togithub.com/mo8it )` in [https://github.com/servo/rust-url/pull/926 ](https://togithub.com/servo/rust-url/pull/926 )
- Reimplement idna on top of ICU4X by [`@​hsivonen](https://togithub.com/hsivonen )` in [https://github.com/servo/rust-url/pull/923 ](https://togithub.com/servo/rust-url/pull/923 )
#### New Contributors
- [`@​philippeitis](https://togithub.com/philippeitis )` made their first contribution in [https://github.com/servo/rust-url/pull/737 ](https://togithub.com/servo/rust-url/pull/737 )
- [`@​bishopcheckmate](https://togithub.com/bishopcheckmate )` made their first contribution in [https://github.com/servo/rust-url/pull/894 ](https://togithub.com/servo/rust-url/pull/894 )
- [`@​oriontvv](https://togithub.com/oriontvv )` made their first contribution in [https://github.com/servo/rust-url/pull/903 ](https://togithub.com/servo/rust-url/pull/903 )
- [`@​dependabot](https://togithub.com/dependabot )` made their first contribution in [https://github.com/servo/rust-url/pull/904 ](https://togithub.com/servo/rust-url/pull/904 )
- [`@​SmaugPool](https://togithub.com/SmaugPool )` made their first contribution in [https://github.com/servo/rust-url/pull/797 ](https://togithub.com/servo/rust-url/pull/797 )
- [`@​hsivonen](https://togithub.com/hsivonen )` made their first contribution in [https://github.com/servo/rust-url/pull/915 ](https://togithub.com/servo/rust-url/pull/915 )
- [`@​micolous](https://togithub.com/micolous )` made their first contribution in [https://github.com/servo/rust-url/pull/886 ](https://togithub.com/servo/rust-url/pull/886 )
- [`@​DylanOToole2](https://togithub.com/DylanOToole2 )` made their first contribution in [https://github.com/servo/rust-url/pull/921 ](https://togithub.com/servo/rust-url/pull/921 )
- [`@​aatifsyed](https://togithub.com/aatifsyed )` made their first contribution in [https://github.com/servo/rust-url/pull/924 ](https://togithub.com/servo/rust-url/pull/924 )
- [`@​mo8it](https://togithub.com/mo8it )` made their first contribution in [https://github.com/servo/rust-url/pull/926 ](https://togithub.com/servo/rust-url/pull/926 )
**Full Changelog**: https://github.com/servo/rust-url/compare/v2.5.0...v2.5.1
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "before 5am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions ) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View repository job log [here](https://developer.mend.io/github/rust-lang/cargo ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjQyMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->
2024-07-02 00:47:07 +00:00
eth3lbert
ef27c273af
test: migrate future_incompat_report to snapbox
2024-07-02 08:42:34 +08:00
eth3lbert
7dc940c7a9
test: migrate fix_n_times to snapbox
2024-07-02 08:42:34 +08:00
eth3lbert
882f3473b5
test: migrate fix to snapbox
2024-07-02 08:42:34 +08:00
renovate[bot]
c7c248511b
chore(deps): update compatible
2024-07-01 18:13:43 +00:00
bors
c1fe2bdf40
Auto merge of #14169 - epage:split-sopource, r=ehuss
...
refactor(source): Clean up after PathSource/RecursivePathSource split
### What does this PR try to resolve?
This is a follow up to #13993 and prep for future improvements (e.g. cargo script, #10752 )
### How should we test and review this PR?
### Additional information
2024-07-01 17:42:28 +00:00
l00556901
cb219d16de
test: migrate error to snapbox
2024-07-01 23:15:36 +08:00
bors
50e1e53f0e
Auto merge of #14132 - heisen-li:cre_cro_cus, r=weihanglo
...
test: Migrate some files to snapbox
### What does this PR try to resolve?
```
tests/testsuite/credential_process.rs
tests/testsuite/cross_compile.rs
tests/testsuite/cross_publish.rs
tests/testsuite/custom_target.rs
```
part of #14039
2024-06-30 17:05:33 +00:00
Ed Page
4982455898
refactor(source): Hide functions not needed elsewhere
2024-06-29 21:52:49 -04:00
Ed Page
b89d18b4a6
refactor(source): Remove redundant PathSource::loaded
2024-06-29 21:28:40 -04:00
Ed Page
5c820b8f86
refactor(source): Move PathSource::read_package closer to use
...
I'd inline it into the only caller left but I expect it to get more
complicated with cargo script.
2024-06-29 21:28:40 -04:00
Ed Page
161b1e7654
refactor(source): Remove PathSource::read_packages
...
With the split of `PathSource` / `RecursivePathSource`,
this doesn't quite make sense anymore.
2024-06-29 21:28:40 -04:00
Ed Page
168feb853d
refactor(add): Simplify use of PathSource
...
With the split `PathSource` / `RecursivePathSource`, we can simplify
this `cargo add` code.
2024-06-29 21:28:40 -04:00
Ed Page
de0f695d90
refactor(source): Rename PathSource::update to load
...
This better matches the semantics (its one-time rather than forcing a
new update) and is consistent with other parts (`preload_with`)
2024-06-29 21:28:40 -04:00
Ed Page
d985f43522
refactor(path): Clarify we're replaces existing packages
2024-06-29 18:45:56 -04:00
Ed Page
f3adda2806
refactor(path): Clarify the relationship between read_packages and update
2024-06-29 18:45:56 -04:00
bors
814f91854a
Auto merge of #14167 - weihanglo:fix-test-assertion, r=ehuss
...
test: fix several assertions
These were found during submodule update. See each commit for details.
```console
---- git::use_the_cli stdout ----
running `/projects/rust/build/aarch64-apple-darwin/stage2-tools/aarch64-apple-darwin/release/cargo check -v`
thread 'git::use_the_cli' panicked at tests/testsuite/git.rs:2872:10:
---- expected: tests/testsuite/git.rs:2854:18
++++ actual: stderr
1 1 | [UPDATING] git repository `[ROOTURL]/dep1`
2 2 | [RUNNING] `git fetch --verbose --force --update-head-ok [..][ROOTURL]/dep1[..] [..]+HEAD:refs/remotes/origin/HEAD[..]`
3 3 | From [ROOTURL]/dep1
4 - * [new ref] HEAD -> origin/HEAD
4 + * [new ref] -> origin/HEAD
5 5 | [LOCKING] 2 packages to latest compatible versions
6 6 | [CHECKING] dep1 v0.5.0 ([ROOTURL]/dep1#[..])
7 7 | [RUNNING] `rustc --crate-name dep1 [..]`
8 8 | [CHECKING] foo v0.5.0 ([ROOT]/foo)
9 9 | [RUNNING] `rustc --crate-name foo [..]`
10 10 | [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
Update with SNAPSHOTS=overwrite
---- publish_lockfile::note_resolve_changes stdout ----
running `/projects/rust/build/aarch64-apple-darwin/stage2-tools/aarch64-apple-darwin/release/cargo generate-lockfile`
running `/projects/rust/build/aarch64-apple-darwin/stage2-tools/aarch64-apple-darwin/release/cargo package --no-verify -v --allow-dirty`
thread 'publish_lockfile::note_resolve_changes' panicked at tests/testsuite/publish_lockfile.rs:247:10:
---- expected: tests/testsuite/publish_lockfile.rs:234:27
++++ actual: stderr
1 1 | [PACKAGING] foo v0.0.1 ([ROOT]/foo)
2 2 | [ARCHIVING] Cargo.lock
3 3 | [UPDATING] `dummy-registry` index
4 4 | [NOTE] package `multi v0.1.0` added to the packaged Cargo.lock file, was originally sourced from `[ROOT]/foo/multi`
5 5 | [NOTE] package `patched v1.0.0` added to the packaged Cargo.lock file, was originally sourced from `[ROOT]/foo/patched`
6 6 | [ARCHIVING] Cargo.toml
7 7 | [ARCHIVING] Cargo.toml.orig
8 8 | [ARCHIVING] src/main.rs
9 9 | [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed)
10 - [WARNING] no (git) Cargo.toml found at `target/tmp/[..]/foo/Cargo.toml` in workdir `[..]`
10 + [WARNING] no (git) Cargo.toml found at `build/[HOST_TARGET]/stage2-tools/[HOST_TARGET]/tmp/cit/t2393/foo/Cargo.toml` in workdir `/projects/rust/`
```
2024-06-29 12:35:34 +00:00
Weihang Lo
fb56fffbb1
test: omit target-dir name (again)
...
See commit 47ddb3a57d26257f5ac9fb7ee4643ccef83e5e25
2024-06-28 22:42:25 -04:00
Weihang Lo
d8eed0785c
test: relax git cli assertion
...
See commit 51ebba2fc1c581e4ec30b308c07f7b70ef3d2f10
2024-06-28 22:32:13 -04:00
bors
9f6247ce71
Auto merge of #14166 - eth3lbert:snapbox-features-unordered, r=epage
...
test: replace glob with explicit unordered calls
### What does this PR try to resolve?
This PR replace glob, which previously addressed ordering issues, with explicit `unordered()` calls.
2024-06-29 02:19:51 +00:00
eth3lbert
bf3ca3cc64
test: replace glob with explicit unordered calls
2024-06-29 07:59:35 +08:00
bors
1b4aafbc9d
Auto merge of #14165 - madsmtm:target_family, r=epage
...
Make it clear that `CARGO_CFG_TARGET_FAMILY` is multi-valued
`target_family` / `CARGO_CFG_TARGET_FAMILY` can take multiple values, but this is not particularly clear in the documentation. To resolve this, I've changed the example to document this.
[A crater run](https://github.com/rust-lang/rust/pull/124355#issuecomment-2091278128 ) found a few instances where this value was incorrectly assumed to be a single value.
2024-06-28 16:38:49 +00:00
bors
cc1e35500f
Auto merge of #14164 - madsmtm:target_abi, r=weihanglo
...
Document `CARGO_CFG_TARGET_ABI`
This was [stabilized](https://github.com/rust-lang/rust/pull/119590 ) in 1.78, but a corresponding entry in Cargo's documentation is still missing.
2024-06-28 15:12:39 +00:00
Mads Marquart
2dc544ec4b
docs: Make it clear that CARGO_CFG_TARGET_FAMILY
is multi-valued
2024-06-28 17:03:56 +02:00
Mads Marquart
8852019fcf
docs: Document CARGO_CFG_TARGET_ABI
2024-06-28 17:03:23 +02:00
bors
9441b91186
Auto merge of #14159 - dieterplex:migrate-git-snapbox, r=weihanglo
...
test: Migrate git to snapbox
Part of #14039 .
There is a case need to modify regex for file size redaction.
2024-06-28 13:05:10 +00:00
d1t2
32cdb261ef
test: Migrate git to snapbox
2024-06-28 17:39:24 +08:00
bors
80091058fe
Auto merge of #14158 - eth3lbert:snapbox-l, r=epage
...
test: migrate some files to snapbox
### What does this PR try to resolve?
Part of https://github.com/rust-lang/cargo/issues/14039 .
Migrate following to snapbox:
- `tests/testsuite/local_registry.rs`
- `tests/testsuite/locate_project.rs`
- `tests/testsuite/lockfile_compat.rs`
- `tests/testsuite/login.rs`
- `tests/testsuite/logout.rs`
2024-06-28 02:59:26 +00:00
eth3lbert
8a3787ed59
test: migrate logout to snapbox
2024-06-28 10:20:28 +08:00
eth3lbert
56471efb3f
test: migrate login to snapbox
2024-06-28 10:20:28 +08:00
eth3lbert
6d0825dc29
test: migrate lockfile_compat to snapbox
2024-06-28 10:20:28 +08:00
eth3lbert
02c0f7ef57
test: migrate locate_project to snapbox
2024-06-28 10:20:28 +08:00
eth3lbert
c3327ed04a
test: migrate local_registry to snapbox
2024-06-28 10:20:28 +08:00
bors
6ed64a7841
Auto merge of #14149 - eth3lbert:snapbox-registry, r=weihanglo
...
test: migrate registry and registry_auth to snapbox
### What does this PR try to resolve?
Part of https://github.com/rust-lang/cargo/issues/14039 .
Migrate following to snapbox:
- `tests/testsuite/registry.rs`
- `tests/testsuite/registry_auth.rs`
### Additional information
Parameterize shared logic over inline snapshots to prevent the content from being appended multiple times in `str![]` when it's called multiple times within a reusable function.
Big thanks to `@weihanglo` for helping me out!
2024-06-27 18:09:02 +00:00
eth3lbert
b7c005459c
test: migrate registry_auth to snapbox
2024-06-27 22:41:17 +08:00
eth3lbert
a00d03fd39
test: migrate registry to snapbox
2024-06-27 22:41:17 +08:00
bors
942536ce83
Auto merge of #14160 - klensy:gix-rev, r=ehuss
...
gix: remove `revision` feature from cargo
Feature was added in #12731 , but cargo builds without it and looks like used in tests only, so unset it.
2024-06-27 13:54:26 +00:00
klensy
6449335635
gix: remove revision feature
2024-06-27 15:59:28 +03:00
bors
0664c7e44a
Auto merge of #14130 - eth3lbert:snapbox-package-n-publish, r=epage
...
test: migrate package* and publish* to snapbox
### What does this PR try to resolve?
Part of https://github.com/rust-lang/cargo/issues/14039 .
Migrate following to snapbox:
- `tests/testsuite/package.rs`
- `tests/testsuite/package_features.rs`
- `tests/testsuite/publish.rs`
- `tests/testsuite/publish_lockfile.rs`
2024-06-27 11:11:29 +00:00
bors
2607661b39
Auto merge of #14049 - tweag:issue-12425-more-tests, r=epage
...
More `update --breaking` tests
Related to https://github.com/rust-lang/cargo/issues/12425#issuecomment-2161374345 in #12425 .
2024-06-27 10:35:36 +00:00
d1t2
ed027736e7
test: Allow redact file size w/o fraction
...
`cargo clean` shows file size without fraction in summary when the size
is lower than 1024. And we need to avoid matching things like `%2B%23..`
found in other test cases, the trailing `\s` is added to regex.
2024-06-27 16:58:52 +08:00
Tor Hovland
f41bdc142b
fix: update --breaking
now handles mixed renaming and pinning.
2024-06-27 09:12:10 +02:00
Tor Hovland
f096a9446f
fix: update --breaking
now understands package@version.
2024-06-27 09:12:10 +02:00
Tor Hovland
8882d0504e
test: More update --breaking
tests.
2024-06-27 09:12:10 +02:00
Tor Hovland
abc86e24c8
refactor: Clean up test output and tracing, and introduce variable.
2024-06-27 09:12:10 +02:00
eth3lbert
a2b706b73b
test: migrate publish_lockfile to snapbox
2024-06-27 13:55:55 +08:00