cargo/tests/testsuite
bors 3f6c685285 Auto merge of #11477 - kylematsuda:workspace_lockfile, r=weihanglo
Use workspace lockfile when running `cargo package` and `cargo publish`

### What does this PR try to resolve?

Fix #11148.

### How should we test and review this PR?

Please run the integration test in `tests/testsuite/publish_lockfile.rs` or try the steps from the issue.
2022-12-19 18:16:27 +00:00
..
cargo_add fix(tests): update to match add change 2022-12-15 09:34:23 +01:00
cargo_remove Clean profile, patch, and replace in cargo remove 2022-11-18 09:33:37 -06:00
init keep empty test directory 2022-11-12 18:43:47 -07:00
mock-std Revert "Check if rust-src contains a vendor dir, and patch it in" 2020-12-11 07:45:27 -08:00
advanced_env.rs Add reasons to all ignored tests. 2022-08-02 12:24:00 -07:00
alt_registry.rs Implement RFC 3139: alternative registry authentication support 2022-11-16 14:36:19 -06:00
artifact_dep.rs fix(bindeps): assumed host target and optional = true coexist 2022-12-04 11:43:50 +00:00
bad_config.rs Implement RFC 3289: source replacement ambiguity 2022-10-07 22:30:59 -05:00
bad_manifest_path.rs track_caller on custom assert functions 2021-03-03 17:17:07 +00:00
bench.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
binary_name.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
build.rs Update duplicate build targets test 2022-12-01 08:58:52 +08:00
build_plan.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
build_script.rs Make cargo forward pre-existing CARGO if set 2022-10-25 13:51:27 -07:00
build_script_env.rs when learning target information, run a little fixedpoint iteration loop 2022-09-26 13:22:43 +01:00
build_script_extra_link_arg.rs remove .masquerade_as_nightly_cargo() from build_script_extra_link_arg.rs 2022-07-14 15:05:33 -05:00
cache_messages.rs Deduplicate compiler diagnostics. 2021-07-09 16:20:46 -07:00
cargo_alias_config.rs Add built-in alias shadowing not warning test 2022-10-13 22:22:52 +01:00
cargo_command.rs Make cargo forward pre-existing CARGO if set 2022-10-25 13:51:27 -07:00
cargo_config.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
cargo_env_config.rs remove unneeded nightly flags from various tests 2022-07-14 19:55:44 -05:00
cargo_features.rs Fix several tests that are waiting 60 seconds for publishing to time out 2022-11-17 15:54:24 -06:00
cargo_targets.rs Warn if an "all" target is specified, but we don't match anything 2021-06-09 19:29:24 +02:00
cfg.rs Fix issue with filtering exclusive target dependencies. 2021-03-11 11:41:00 -08:00
check.rs fix: Make auto-fix note work with clippy 2022-12-15 10:54:35 -06:00
check_cfg.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
clean.rs Actually make test effective 2022-10-31 20:43:20 -06:00
collisions.rs Fix collision_doc_profile test error 2022-12-15 20:04:50 -08:00
concurrent.rs Re-enable killing_cargo_releases_the_lock on windows. 2022-08-02 12:30:42 -07:00
config.rs Dont swallow errors when checking existence of a config key 2022-09-22 10:52:39 +01:00
config_cli.rs test(config_cli): multi-occurrence cli args with paths 2022-09-16 15:32:00 +01:00
config_include.rs test(config-include): fix typo 2022-10-09 16:14:20 +08:00
corrupt_git.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
credential_process.rs Implement RFC 3139: alternative registry authentication support 2022-11-16 14:36:19 -06:00
cross_compile.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
cross_publish.rs update package, publish, and publish_lockfile tests 2022-10-28 17:13:25 -07:00
custom_target.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
death.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
dep_info.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
directory.rs Update tests to use registry names 2021-07-22 00:50:30 +08:00
doc.rs Change rustdoc-scrape-examples to be a target-level configuration 2022-11-16 09:18:33 -08:00
docscrape.rs Fix examples of proc-macro crates being scraped for examples 2022-12-18 10:41:21 -08:00
edition.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
error.rs Rework internal errors. 2020-02-17 19:03:57 -08:00
features.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
features2.rs test(features2): test to prevent regressing of optional host deps of dep 2022-11-07 17:42:05 +00:00
features_namespaced.rs update stderr in tests for unrelated functionality 2022-10-28 17:13:25 -07:00
fetch.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
fix.rs Fix fix_in_existing_repo_weird_ignore broken test 2022-11-26 20:15:36 +08:00
freshness.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
future_incompat_report.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
generate_lockfile.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
git.rs Clean stale git temp files 2022-10-28 15:39:02 -07:00
git_auth.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
git_gc.rs Clean stale git temp files 2022-10-28 15:39:02 -07:00
glob_targets.rs fix typos found by the typos-cli crate 2022-05-10 16:47:28 -05:00
help.rs fix panic if an alias is defined to "" 2021-12-12 13:30:31 -07:00
inheritable_workspace_fields.rs Fix several tests that are waiting 60 seconds for publishing to time out 2022-11-17 15:54:24 -06:00
install.rs Auto merge of #11401 - adam248:patch-1, r=ehuss 2022-11-25 13:34:10 +00:00
install_upgrade.rs fix(yank): Use '--version' like install 2022-04-19 16:45:13 -05:00
jobserver.rs Auto merge of #10511 - weihanglo:issue-10477, r=ehuss 2022-09-02 14:29:28 +00:00
list_availables.rs test: list availables for clean,tree,update 2020-10-28 02:46:20 +08:00
local_registry.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
locate_project.rs Remove the double-backslash escape for matching. 2021-06-16 09:44:29 -07:00
lockfile_compat.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
login.rs Implement RFC 3139: alternative registry authentication support 2022-11-16 14:36:19 -06:00
logout.rs Implement RFC 3139: alternative registry authentication support 2022-11-16 14:36:19 -06:00
lto.rs Revert "temporarily disable test lto::test_profile" 2022-12-17 22:51:57 +00:00
main.rs Auto merge of #10343 - willcrichton:example-analyzer, r=weihanglo 2022-11-25 06:58:20 +00:00
member_discovery.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
member_errors.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
message_format.rs Bump to 0.54.0 2021-03-26 12:28:47 -07:00
messages.rs add short path name for executables 2022-01-31 10:37:02 -08:00
metabuild.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
metadata.rs chore: Update tests for latest clap 2022-10-13 15:16:38 -05:00
minimal_versions.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
multitarget.rs Update tests to reflect -Zmultitarget stabilization 2022-07-17 11:02:01 +01:00
net_config.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
new.rs Warn if project path contains an invalid PATH env character 2022-11-12 18:43:35 -07:00
offline.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
old_cargos.rs Add reasons to all ignored tests. 2022-08-02 12:24:00 -07:00
out_dir.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
owner.rs Implement RFC 3289: source replacement ambiguity 2022-10-07 22:30:59 -05:00
package.rs add new tests for filesizes 2022-10-28 17:13:25 -07:00
package_features.rs Change rustdoc-scrape-examples to be a target-level configuration 2022-11-16 09:18:33 -08:00
patch.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
path.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
paths.rs Replace deprecated [replace] references with [patch] 2021-06-02 12:30:56 +02:00
pkgid.rs fix some typos 2022-05-08 01:07:28 +08:00
plugins.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
proc_macro.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
profile_config.rs Extend pkgid syntax with @ support 2022-04-19 16:00:15 -05:00
profile_custom.rs Add reasons to all ignored tests. 2022-08-02 12:24:00 -07:00
profile_overrides.rs Extend pkgid syntax with @ support 2022-04-19 16:00:15 -05:00
profile_targets.rs fix typos found by the typos-cli crate 2022-05-10 16:47:28 -05:00
profiles.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
progress.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
pub_priv.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
publish.rs Implement RFC 3139: alternative registry authentication support 2022-11-16 14:36:19 -06:00
publish_lockfile.rs make test clearer 2022-12-19 10:50:55 -07:00
read_manifest.rs Add rust_metadata to SerializedPackage 2021-10-12 14:07:19 +02:00
registry.rs Auto merge of #11337 - weihanglo:compression-ratio, r=ehuss 2022-11-29 19:10:00 +00:00
registry_auth.rs Implement RFC 3139: alternative registry authentication support 2022-11-16 14:36:19 -06:00
rename_deps.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
replace.rs Extend pkgid syntax with @ support 2022-04-19 16:00:15 -05:00
required_features.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
run.rs refactor(cli): Upgrade to clap v4 2022-09-28 13:32:14 -05:00
rust_version.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
rustc.rs refactor(cli): Upgrade to clap v4 2022-09-28 13:32:14 -05:00
rustc_info_cache.rs Don't re-use rustc cache when RUSTC_WRAPPER changes 2021-04-16 20:08:11 +03:00
rustdoc.rs Update rustdoc tests with -Cmetadata flag 2021-10-12 19:33:23 -07:00
rustdoc_extern_html.rs Add test for rustdoc map usage with sparse alternative registries 2022-11-29 19:28:03 +11:00
rustdocflags.rs Gleaning rustdocflags from target.cfg(…) is not supported 2022-11-01 15:01:44 +00:00
rustflags.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
search.rs Implement RFC 3139: alternative registry authentication support 2022-11-16 14:36:19 -06:00
shell_quoting.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
source_replacement.rs update stderr in tests for unrelated functionality 2022-10-28 17:13:25 -07:00
standard_lib.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
test.rs Make cargo forward pre-existing CARGO if set 2022-10-25 13:51:27 -07:00
timings.rs Move timing reports to target/cargo-timings 2022-01-30 21:43:52 -08:00
tool_paths.rs Fix test 2022-08-10 23:19:35 +08:00
tree.rs Fix typo try use -> try to use 2022-11-20 18:14:17 +08:00
tree_graph_features.rs Do not ignore --features when --all-features is present 2022-01-28 02:49:42 +03:00
unit_graph.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
update.rs Remove warning for aggressive flag without -p flag 2022-11-30 09:08:03 +08:00
vendor.rs Store the sparse+ prefix in the URL for sparse registries 2022-11-17 14:25:47 -06:00
verify_project.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
version.rs Re-enable version_works_without_rustc on windows. 2022-08-02 12:54:16 -07:00
warn_on_failure.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
weak_dep_features.rs update stderr in tests for unrelated functionality 2022-10-28 17:13:25 -07:00
workspaces.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
yank.rs Implement RFC 3289: source replacement ambiguity 2022-10-07 22:30:59 -05:00