We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a29294 commit 7482de8Copy full SHA for 7482de8
tests/testsuite/script.rs
@@ -1321,6 +1321,23 @@ path+[ROOTURL]/foo#[email protected]
1321
.run();
1322
}
1323
1324
+#[cargo_test]
1325
+fn cmd_pkgid_with_embedded_no_lock_file() {
1326
+ let p = cargo_test_support::project()
1327
+ .file("script.rs", ECHO_SCRIPT)
1328
+ .build();
1329
+
1330
+ p.cargo("-Zscript pkgid --manifest-path script.rs")
1331
+ .masquerade_as_nightly_cargo(&["script"])
1332
+ .with_status(101)
1333
+ .with_stderr_data(str![[r#"
1334
+[WARNING] `package.edition` is unspecified, defaulting to `2024`
1335
+[ERROR] a Cargo.lock must exist for this command
1336
1337
+"#]])
1338
+ .run();
1339
+}
1340
1341
#[cargo_test]
1342
fn cmd_package_with_embedded() {
1343
let p = cargo_test_support::project()
0 commit comments