-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
Problem
In https://github.com/Ekleog/kannader/tree/main/smtp-queue-fs, I have a res/
folder that intentionally contains a broken symlink. This folder is properly tracked by git, and used by tests to validate that smtp-queue-fs
behaves correctly when faced with a queue that has a broken symlink
Proposed Solution
It would be nice if cargo
were able to store the same types of files as git
, so including broken symlinks. This would make it possible to upload this kind of crates with its tests on crates.io
Notes
I guess an alternative would be to not have the broken symlink be checked-in, and instead handle the test creation and validation differently. However, it makes it harder to just add tests, given that it means manual care needs to be given to each test that has a broken symlink.
I would understand if you think that'd be a non-feature and you didn't want to allow including broken symlinks in the crate on crates.io, but I thought it was worth opening this issue to gather feedback over whether it'd be of interest. Sorry if it has already been discussed elsewhere!