-
-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failure to remove package because of build output file #377
Conversation
- fixed by removing the journal - tedious to track all the output files - journal didn't keep track of modified or removed files anyhow
I first tried to keep track of every file that is added somewhere, but that was pretty messy. |
failure to remove package because of build output file
The idea was to have a safety net to avoid accidentally deleting user created files. IMO it would have been better to restrict the blind removal to the |
But the build output isn't in .dub, so that wouldn't fix the issue. You're right about the deprecation. |
A solution here would be to move binaries for installed packages out of tree, but that might require to change the run path or so. |
You are right, I only thought of that after writing the reply... Since guessing the target binary name is difficult (would have to iterate over all possible os-cpu-compiler combinations), that doesn't sound like a good way to go. Another possibility would be to just add the target binary to the installation protocol during the build (if a protocol exists). I'll have a closer look later. |
There is also copyFiles for which you'd have to update the installed files list. |
Hm.. or maybe a completely generic approach? Make a directory snapshot before and after each DUB operation (except for the "run" part of "dub run" or "dub test") and update the log with the difference? |
If you can implement it efficiently. FWIW this is a complex feature with small impact. |
Failed to remove vibe-d ~master: Untracked file found, aborting package removal, file: /home/dawg/.dub/packages/vibe-d-master/libvibe-d.a
dub --help
DUB version 0.9.22-beta.4+23-g617bdf0, built on Jul 16 2014