You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
What did you do?
Following the instructions on https://golang.org/doc/install?download=go1.10.1.windows-amd64.msi
I installed Go and built hello.exe
After go install, hello.exe was copied to %userprofile%\go\bin
go uninstall doesn't do anything. So much for intuition.
reading further it said use go clean
however, %userprofile%\go\bin\hello.exe still exists.
What did you expect to see?
an empty directory after go clean
I also expected go uninstall to work, go figure.
What did you see instead?
%userprofile%\go\bin\hello.exe still exists.
System details
go version go1.10.1 windows/amd64
running under cmd.exe
GOROOT=C:\Site\app\Go
Nothing terribly personal was in the following:
I presume auto-generated:
go version go1.10.1 windows/amd64
GOARCH="amd64"
GOBIN=""
GOCACHE="C:\Users\Berna\AppData\Local\go-build"
GOEXE=".exe"
GOHOSTARCH="amd64"
GOHOSTOS="windows"
GOOS="windows"
GOPATH="C:\Users\Berna\go"
GORACE=""
GOROOT="C:\Site\app\Go"
GOTMPDIR=""
GOTOOLDIR="C:\Site\app\Go\pkg\tool\windows_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\Berna\AppData\Local\Temp\go-build066044138=/tmp/go-build -gno-record-gcc-switches"
GOROOT/bin/go version: go version go1.10.1 windows/amd64
GOROOT/bin/go tool compile -V: compile version go1.10.1
The text was updated successfully, but these errors were encountered:
Hi, I cannot confirm this behavior. If I call go clean -i it removes the file.
See:
The -i flag causes clean to remove the corresponding installed
archive or binary (what 'go install' would create).
Uninstalling Go will not remove any user profile data, as expected from a Windows Installer. You do not want to have all user files be removed as the user might upgrade to a newer version or reinstall.
agnivade
changed the title
go clean did not uninstall %userprofile%\go\bin\hello.exe
cmd/go: clean did not uninstall %userprofile%\go\bin\hello.exe
Apr 15, 2018
Please answer these questions before submitting your issue. Thanks!
What did you do?
Following the instructions on https://golang.org/doc/install?download=go1.10.1.windows-amd64.msi
I installed Go and built hello.exe
After go install, hello.exe was copied to %userprofile%\go\bin
go uninstall doesn't do anything. So much for intuition.
reading further it said use go clean
however, %userprofile%\go\bin\hello.exe still exists.
What did you expect to see?
an empty directory after go clean
I also expected go uninstall to work, go figure.
What did you see instead?
%userprofile%\go\bin\hello.exe still exists.
System details
go version go1.10.1 windows/amd64
running under cmd.exe
GOROOT=C:\Site\app\Go
Nothing terribly personal was in the following:
I presume auto-generated:
The text was updated successfully, but these errors were encountered: