File tree 2 files changed +9
-9
lines changed 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,6 @@ pub fn cli() -> Command {
18
18
19
19
pub fn exec ( gctx : & mut GlobalContext , args : & ArgMatches ) -> CliResult {
20
20
let ws = args. workspace ( gctx) ?;
21
- if ws. root_maybe ( ) . is_embedded ( ) {
22
- return Err ( anyhow:: format_err!(
23
- "{} is unsupported by `cargo pkgid`" ,
24
- ws. root_manifest( ) . display( )
25
- )
26
- . into ( ) ) ;
27
- }
28
21
if args. is_present_with_zero_values ( "package" ) {
29
22
print_available_packages ( & ws) ?
30
23
}
Original file line number Diff line number Diff line change @@ -1303,12 +1303,19 @@ fn cmd_pkgid_with_embedded() {
1303
1303
. file ( "script.rs" , ECHO_SCRIPT )
1304
1304
. build ( ) ;
1305
1305
1306
+ p. cargo ( "-Zscript build --manifest-path script.rs" )
1307
+ . masquerade_as_nightly_cargo ( & [ "script" ] )
1308
+ . run ( ) ;
1309
+
1310
+ // FIXME: It should be `path+[ROOTURL]/foo#[email protected] `.
1306
1311
p. cargo ( "-Zscript pkgid --manifest-path script.rs" )
1307
1312
. masquerade_as_nightly_cargo ( & [ "script" ] )
1308
- . with_status ( 101 )
1313
+ . with_stdout_data ( str![ [ r#"
1314
+ path+[ROOTURL]/foo#[email protected]
1315
+
1316
+ "# ] ] )
1309
1317
. with_stderr_data ( str![ [ r#"
1310
1318
[WARNING] `package.edition` is unspecified, defaulting to `2024`
1311
- [ERROR] [ROOT]/foo/script.rs is unsupported by `cargo pkgid`
1312
1319
1313
1320
"# ] ] )
1314
1321
. run ( ) ;
You can’t perform that action at this time.
0 commit comments