-
Notifications
You must be signed in to change notification settings - Fork 29
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
go build -out-dir $(pwd)
will delete your working directory
#74
Comments
Correct, it's intended to prevent accidental behavior such as a file generated from a previous run causing a Go compilation error. What are the better approaches?
|
What about this:
|
potentially with a |
in #83 we decided to aim for a nondestructive strategy rather than asking for permission to delete, which is not a great DX. The next question is, how? Given a build directory A simple strategy would be:
That might ultimately create more files than are strictly necessary, but it's hard for me to see how we can safely re-use a directory that's already been used? |
Right now the first step in the build process is to delete everything in whatever directory you give it for an output directory, this is probably a footgun:
pushup/main.go
Line 303 in 7b9ec07
Is there any reason to delete files other than ones that conflict with what pushup is building?
The text was updated successfully, but these errors were encountered: