We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
__pycache__
1 parent 63d6ce0 commit 8caef4eCopy full SHA for 8caef4e
src/bootstrap/src/core/build_steps/dist.rs
@@ -1028,6 +1028,20 @@ impl Step for PlainSourceTarball {
1028
builder.create(&cargo_config_dir.join("config.toml"), &config);
1029
}
1030
1031
+ // Delete extraneous directories
1032
+ // FIXME: if we're managed by git, we should probably instead ask git if the given path
1033
+ // is managed by it?
1034
+ for entry in walkdir::WalkDir::new(tarball.image_dir())
1035
+ .follow_links(true)
1036
+ .into_iter()
1037
+ .filter_map(|e| e.ok())
1038
+ {
1039
+ if entry.path().is_dir() && entry.path().file_name() == Some(OsStr::new("__pycache__"))
1040
1041
+ t!(fs::remove_dir_all(entry.path()));
1042
+ }
1043
1044
+
1045
tarball.bare()
1046
1047
0 commit comments