Skip to content

Conversation

giraffate
Copy link
Contributor

There was no test for cargo pkgid command.

@rust-highfive
Copy link

r? @ehuss

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 24, 2019
@giraffate
Copy link
Contributor Author

I saw #7725. At least, these added tests seem to be correct at the moment. So I added tests first.

@giraffate giraffate force-pushed the add_test_for_cargo_pkgid branch from cd64812 to 85d4cad Compare December 24, 2019 09:32
.file("src/main.rs", "fn main() {}")
.build();

p.cargo("build").run();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
p.cargo("build").run();
p.cargo("generate-lockfile").run();

I think this would make the purpose clearer (pkgid just needs a lock file), and would make the test faster (our tests tend to be a little too heavy).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed it. Thanks for your review!

@giraffate giraffate force-pushed the add_test_for_cargo_pkgid branch from 85d4cad to a28d9a1 Compare December 29, 2019 11:43
@ehuss
Copy link
Contributor

ehuss commented Dec 29, 2019

Thanks!

@bors r+

@bors
Copy link
Contributor

bors commented Dec 29, 2019

📌 Commit a28d9a1 has been approved by ehuss

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 29, 2019
@bors
Copy link
Contributor

bors commented Dec 29, 2019

⌛ Testing commit a28d9a1 with merge 4111e1a...

bors added a commit that referenced this pull request Dec 29, 2019
Add test for `cargo pkgid`

There was no test for `cargo pkgid` command.
@bors
Copy link
Contributor

bors commented Dec 29, 2019

☀️ Test successful - checks-azure
Approved by: ehuss
Pushing 4111e1a to master...

@bors bors merged commit a28d9a1 into rust-lang:master Dec 29, 2019
@giraffate giraffate deleted the add_test_for_cargo_pkgid branch December 30, 2019 13:19
bors added a commit to rust-lang/rust that referenced this pull request Jan 7, 2020
Update cargo

9 commits in 86134e7666a088682f20b76278c3ee096a315218..6e1ca924a67dd1ac89c33f294ef26b5c43b89168
2019-12-23 16:08:07 +0000 to 2020-01-06 19:11:37 +0000
- Fix dynamic linking for Windows UWP MSVC targets (rust-lang/cargo#7758)
- Fix CARGO_TARGET_triple_LINKER environment variable. (rust-lang/cargo#7763)
- Remove metadata dep_kinds duplicates. (rust-lang/cargo#7756)
- Check for a source defined multiple times. (rust-lang/cargo#7751)
- Fix typo. (rust-lang/cargo#7735)
- Fix config env vars that are prefix of another with underscore. (rust-lang/cargo#7748)
- Add test for `cargo pkgid` (rust-lang/cargo#7741)
- Add a note to the error message for using --feature / --no-default-features in a virtual workspace (rust-lang/cargo#7742)
- Fix debug message. (rust-lang/cargo#7749)
@ehuss ehuss added this to the 1.42.0 milestone Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants