Ed Page
14646e6af6
test: Make edition explicit on packages
2024-02-22 11:37:03 -06:00
Ed Page
831847e5f0
fix(rustc): Always pass --edition to rustc
...
On [Internals](https://internals.rust-lang.org/t/idea-rustc-cargo-should-warn-on-unspecified-edition/20309 ),
the idea came up for warning on unset Edition.
I am working on the cargo warning but if rustc ever wants to do so,
they'd be blocked on cargo ensuring `--edition` is always set.
Hence this change.
2024-02-28 15:35:41 -06:00
Ed Page
e7e8d8748a
fix(compiler): Clarify we're showing a profile name
2024-02-08 14:01:39 -06:00
Eric Huss
0afd943dad
Fix some test output validation.
2023-11-15 15:10:18 -08:00
Kyle Matsuda
8c4f27fd5b
make test clearer
2022-12-19 10:50:55 -07:00
Kyle Matsuda
4d86b26a68
fix test
2022-12-12 15:47:31 -07:00
Kyle Matsuda
4cda74a1a3
add test with current behavior
2022-12-12 11:07:43 -07:00
Anton Lazarev
9333b8f5ba
update package, publish, and publish_lockfile tests
2022-10-28 17:13:25 -07:00
Scott Schafer
c239e407e7
add a reason to masquerade_as_nightly_cargo
so it is searchable
2022-07-15 21:32:23 -05:00
Scott Schafer
cab6d30c1d
fix typos found by the typos-cli
crate
2022-05-10 16:47:28 -05:00
Weihang Lo
8c75e2ffa0
Update tests to use registry names
2021-07-22 00:50:30 +08:00
Eric Huss
2c99f654c9
Update nightly failure notification.
2021-07-05 16:08:36 -07:00
Eric Huss
7bbef3defe
Rework cargo-features a little.
...
* Add `removed` support.
* Include the version where it is stabilized.
* Include a links to the documentation in the error/warning messages.
2021-01-21 12:16:35 -08:00
Eric Huss
ff349f0205
Remove publish-lockfile key from manifest.
...
The feature was stabilized without the key in #7026 about 1.5 years ago.
(Will follow up with an error message in a subsequent commit.)
2021-01-20 19:31:57 -08:00
Eric Huss
6f8c7d5a87
Normalize raw string indentation.
2020-09-26 17:59:58 -07:00
Eric Huss
156c65123f
Allow cargo package --list
even for things that don't package.
2020-04-28 10:49:21 -07:00
Eric Huss
1232ad3cde
Don't require Cargo.toml to be in root of a git repo for path source walking.
2020-04-22 11:29:59 -07:00
Matthias Krüger
1d912002e9
fix most remaining clippy findings (mostly redundant imports)
2020-02-21 12:15:16 +01:00
Eric Huss
90887707ed
Copy license-file into package if outside of root.
2020-02-20 13:27:25 -08:00
Eric Huss
3cedb8e33c
Fix .gitignore of Cargo.lock in a subdirectory.
2020-01-08 10:40:17 -08:00
Eric Huss
83571aee56
Minor testsuite organization.
2019-11-24 18:42:45 -08:00
Eric Huss
36f01e6492
Allow gitignore of Cargo.lock with explicit include
.
2019-09-26 15:02:01 -07:00
Alex Crichton
9115b2c326
Extract support
directory to its own crate
...
Extract out all our test support code to its own standalone crate so it
can be shared between multiple test suites if necessary.
2019-09-16 11:47:09 -07:00
Eric Huss
34307c6122
Stabilize publish-lockfile.
2019-06-10 13:19:18 -07:00
Jethro Beekman
0e0d968825
Update #[test] attribute on all tests in the testsuite
...
sed -i 's/^#\[test\]/#[cargo_test]/' $(rg -l '^#\[test\]')
Manual fixes:
* proc_macro::proc_macro_doctest
2019-06-07 12:41:26 -07:00
Eric Huss
7d202307ce
Include Cargo.lock in package checks.
...
This includes `Cargo.lock` in the git dirty check. It explicitly excludes
`Cargo.lock` as an untracked file, since it is not relevant for the dirty check;
it is only checked if it is committed to git.
This also adds `Cargo.lock` to the "did anything modify this" check during
verification. I don't see a reason to exclude it (particularly since ephemeral
workspaces do not save the lock file).
Also add "Archiving: Cargo.lock" to the verbose output.
2019-04-17 14:06:05 -07:00
Eric Huss
5553284d05
Avoid multiple index updates.
...
This also restores the Cargo.lock update during packaging.
2019-04-16 11:03:20 -07:00
Eric Huss
753b03f652
Alter cargo package
Cargo.lock modification note.
...
Try to make it clearer that it is not modifying the actual Cargo.lock file, but
the one that is being stored in the .crate file.
2019-04-16 09:06:59 -07:00
Eric Huss
6eb55abe2c
cargo package: Change lock file updates from warning to requiring -v.
2019-04-16 08:54:24 -07:00
Eric Huss
c03c85ad49
publish-lockfile: Change default to true
.
...
The feature still needs to be enabled.
2019-04-16 08:54:24 -07:00
Eric Huss
5f616eb18e
Add warnings for yanked dependencies.
...
This only applies for `cargo package/publish` with the publish-lockfile feature,
or `cargo install --locked`.
2019-04-16 08:54:24 -07:00
Eric Huss
27932ead44
publish-lockfile: Always check Cargo.lock is up-to-date.
...
This changes it so that `cargo package` will make sure the Cargo.lock file is
in sync with the Cargo.toml that is generated during packaging. This has several
points:
- This makes the Cargo.lock more accurately reflect what would be locked
if a user runs `cargo install` on the resulting package.
- In a workspace, this removes irrelevant packages from the lock file.
- This handles `[patch]` dependencies and dual-source dependencies (like
path/version).
- Warnings are generated for any differences in the lock file compared to the
original.
This has a significant change in how `cargo package` works. It now
unconditionally copies the package to `target/package`. Previously this was only
done during the verification step. This is necessary to run the resolver against
the new `Cargo.toml` that gets generated.
2019-04-16 08:54:24 -07:00
Eric Huss
ebb5764ad8
Move publish-lockfile tests to a dedicated file.
2019-04-16 08:54:24 -07:00