@@ -1339,10 +1339,12 @@ fn dirty_file_outside_pkg_root_considered_dirty() {
1339
1339
license-file = "../LICENSE"
1340
1340
"# ,
1341
1341
)
1342
+ . file ( "original-dir/file" , "before" )
1342
1343
. symlink ( "lib.rs" , "isengard/src/lib.rs" )
1343
1344
. symlink ( "README.md" , "isengard/README.md" )
1344
1345
. file ( & main_outside_pkg_root, "fn main() {}" )
1345
1346
. symlink ( & main_outside_pkg_root, "isengard/src/main.rs" )
1347
+ . symlink_dir ( "original-dir" , "isengard/symlink-dir" )
1346
1348
} ) ;
1347
1349
git:: commit ( & repo) ;
1348
1350
@@ -1352,6 +1354,7 @@ fn dirty_file_outside_pkg_root_considered_dirty() {
1352
1354
// * Changes in files outside package root that source files symlink to
1353
1355
p. change_file ( "README.md" , "after" ) ;
1354
1356
p. change_file ( "lib.rs" , "pub fn after() {}" ) ;
1357
+ p. change_file ( "original-dir/file" , "after" ) ;
1355
1358
// * Changes in files outside pkg root that `license-file`/`readme` point to
1356
1359
p. change_file ( "LICENSE" , "after" ) ;
1357
1360
// * When workspace inheritance is involved and changed
@@ -1388,7 +1391,7 @@ to proceed despite this and include the uncommitted changes, pass the `--allow-d
1388
1391
p. cargo ( "package --workspace --no-verify --allow-dirty" )
1389
1392
. with_stderr_data ( str![ [ r#"
1390
1393
[PACKAGING] isengard v0.0.0 ([ROOT]/foo/isengard)
1391
- [PACKAGED] 8 files, [FILE_SIZE]B ([FILE_SIZE]B compressed)
1394
+ [PACKAGED] 9 files, [FILE_SIZE]B ([FILE_SIZE]B compressed)
1392
1395
1393
1396
"# ] ] )
1394
1397
. run ( ) ;
@@ -1411,13 +1414,15 @@ edition = "2021"
1411
1414
"Cargo.toml.orig" ,
1412
1415
"src/lib.rs" ,
1413
1416
"src/main.rs" ,
1417
+ "symlink-dir/file" ,
1414
1418
"Cargo.lock" ,
1415
1419
"LICENSE" ,
1416
1420
"README.md" ,
1417
1421
] ,
1418
1422
[
1419
1423
( "src/lib.rs" , str![ "pub fn after() {}" ] ) ,
1420
1424
( "src/main.rs" , str![ r#"fn main() { eprintln!("after"); }"# ] ) ,
1425
+ ( "symlink-dir/file" , str![ "after" ] ) ,
1421
1426
( "README.md" , str![ "after" ] ) ,
1422
1427
( "LICENSE" , str![ "after" ] ) ,
1423
1428
( "Cargo.toml" , cargo_toml) ,
0 commit comments