]> source.dussan.org Git - gitignore.git/commitdiff
Go: Add '*.exe~' to .gitignore 2561/head
authorMax Schmitt <max.andreas.schmitt@googlemail.com>
Mon, 1 Jan 2018 19:57:36 +0000 (20:57 +0100)
committerGitHub <noreply@github.com>
Mon, 1 Jan 2018 19:57:36 +0000 (20:57 +0100)
When you build a Go executable, which does already exists and is in use on Windows (e.g. running) then the output binary name will be extended by a '~' prefix.
https://github.com/golang/go/blob/558eeb2d850d064b0b02b65a7bf3af6c108c248d/src/cmd/go/internal/work/exec.go#L1165-L1170

Go.gitignore

index ea58090bd21e1b3182e644a2b27fb181a12cb6f6..f1c181ec9c5c921245027c6b452ecfc1d3626364 100644 (file)
@@ -1,5 +1,6 @@
 # Binaries for programs and plugins
 *.exe
+*.exe~
 *.dll
 *.so
 *.dylib