Commit 73e3975 1 parent 9c0af53 commit 73e3975 Copy full SHA for 73e3975
File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -1321,6 +1321,23 @@ path+[ROOTURL]/foo#script@0.0.0
1321
1321
. run ( ) ;
1322
1322
}
1323
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
+
1324
1341
#[ cargo_test]
1325
1342
fn cmd_package_with_embedded ( ) {
1326
1343
let p = cargo_test_support:: project ( )
You can’t perform that action at this time.
0 commit comments