Skip to content

clean.bat: cannot delete go.exe because it is in use #6179

@gopherbot

Description

@gopherbot

by atkaaz:

Before filing a bug, please check whether it has been fixed since the
latest release. Search the issue tracker and check that you're running the
latest version of Go:

Run "go version" and compare against
http://golang.org/doc/devel/release.html  If a newer version of Go exists,
install it and retry what you did to reproduce the problem.

Thanks.

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. clone the repo in a folder
2. set GOROOT and PATH to this folder, set GOPATH to your workspace...
3. compile Go:
cd thatfolder
cd src 
make.bat
4. attempt to clean:
clean.bat


What is the expected output?
no output

What do you see instead?
Sun 08/18/2013  1:56:35.84 s:\workspace.go.2013\go64\src>clean

go clean: remove c:\go\bin\go.exe: Access is denied.

(note that in my case here, C:\go\ is a symlink folder pointing to
s:\workspace.go.2013\go64\  )

Which compiler are you using (5g, 6g, 8g, gccgo)?
I don't know what this means at this time

Which operating system are you using?
Windows 7 64bit

Which version are you using?  (run 'go version')
go version devel +6d2a2628859d Sat Aug 17 13:40:55 2013 +0900 windows/amd64

Please provide any additional information below.

this line:
http://code.google.com/p/go/source/browse/src/clean.bat#21

    Sat 08/17/2013 16:01:53.39 s:\workspace.go.2013\go64\src>clean

    go clean: remove c:\go\bin\go.exe: Access is denied.

I have a feeling that this would work on linux though, because maybe only windows is
locking inuse .exe-s

side note: first asked about this on ML here:
https://groups.google.com/d/msg/golang-nuts/q0-8L5y1oHg/daNPRCGk8AQJ

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions