scarb package
is crashing on invalid symlinks which should be ignored from the package
#740
Labels
Milestone
Problem
The following test currently asserts failure because of implementation simplifications:
scarb/scarb/tests/package.rs
Lines 644 to 667 in 0951e2a
Actually, what could happen here is that we can successfully create the tarball because the invalid symlink shouldn't be visited by the packaging process (it should be filtered out by dirwalker).
Steps
No response
Possible Solution(s)
Expand this logic:
scarb/scarb/src/core/publishing/source.rs
Lines 68 to 74 in 0951e2a
to do something like this: https://github.com/rust-lang/cargo/blob/af1a78b424db7d517a359fd23d548e7fb30be98f/src/cargo/sources/path.rs#L458-L478
There are some differences between
ignore
andwalkdir
crates here, so this won't be a 1:1 copypaste.Notes
No response
Version
No response
The text was updated successfully, but these errors were encountered: