We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 781f23f + 87ce836 commit 1ad3d7cCopy full SHA for 1ad3d7c
crates/volta-core/src/tool/package/metadata.rs
@@ -261,7 +261,12 @@ mod serde_bins {
261
{
262
let mut bins = Vec::new();
263
while let Some((name, _)) = access.next_entry::<String, String>()? {
264
- bins.push(name);
+ // Bin names that include path separators are invalid, as they would then point to
265
+ // other locations on the filesystem. To match the behavior of npm & Yarn, we
266
+ // filter those values out of the list of bins.
267
+ if !name.contains(&['/', '\\'][..]) {
268
+ bins.push(name);
269
+ }
270
}
271
Ok(bins)
272
0 commit comments