Skip to content
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

bingo get fails on Windows: bingo.tmp.mod is being used by another process #127

Open
lectrician1 opened this issue Nov 20, 2022 · 1 comment

Comments

@lectrician1
Copy link

bingo version output:
v0.7

go version output:
go version go1.19.3 windows/amd64

What happened:

bingo get
Error: get command failed: get: 0: getting github.com\bwplotka\b[email protected]: rename mod file: rename C:\Users\jayan\scoop\apps\go\current\src\gitlab.wikimedia.org\repos\releng\cli\.bingo\bingo.tmp.mod C:\Users\jayan\scoop\apps\go\current\src\gitlab.wikimedia.org\repos\releng\cli\.bingo\bingo.mod: The process cannot access the file because it is being used by another process.

What you expected to happen:
It installs the dependencies

How to reproduce it (as minimally and precisely as possible):
Run bingo get on Windows.

Logs (use bingo get -v <thing you do> for verbose output):

bingo get -v
getting target github.com\bwplotka\[email protected] (module github.com/bwplotka/bingo )
exec 'go list -modfile=C:\Users\jayan\scoop\apps\go\current\src\gitlab.wikimedia.org\repos\releng\cli\.bingo\bingo.tmp.mod -mod=mod -f={{.Name}} github.com\bwplotka\bingo'
exec 'go build -modfile=C:\Users\jayan\scoop\apps\go\current\src\gitlab.wikimedia.org\repos\releng\cli\.bingo\bingo.tmp.mod -o=bingo-v0.5.1 github.com\bwplotka\bingo'
Error: get command failed
> main.main     C:/Users/jayan/go/pkg/mod/github.com/bwplotka/[email protected]/main.go:223
> runtime.main  C:/Users/jayan/scoop/apps/go/current/src/runtime/proc.go:250
> runtime.goexit        C:/Users/jayan/scoop/apps/go/current/src/runtime/asm_amd64.s:1594
get
> main.main.func2       C:/Users/jayan/go/pkg/mod/github.com/bwplotka/[email protected]/main.go:147
> main.main.func5       C:/Users/jayan/go/pkg/mod/github.com/bwplotka/[email protected]/main.go:215
> github.com/oklog/run.(*Group).Run.func1       C:/Users/jayan/go/pkg/mod/github.com/oklog/[email protected]/group.go:38
> runtime.goexit        C:/Users/jayan/scoop/apps/go/current/src/runtime/asm_amd64.s:1594
0: getting github.com\bwplotka\[email protected]
> main.getAll   C:/Users/jayan/go/pkg/mod/github.com/bwplotka/[email protected]/get.go:119
> main.get      C:/Users/jayan/go/pkg/mod/github.com/bwplotka/[email protected]/get.go:154
> main.main.func2       C:/Users/jayan/go/pkg/mod/github.com/bwplotka/[email protected]/main.go:146
> main.main.func5       C:/Users/jayan/go/pkg/mod/github.com/bwplotka/[email protected]/main.go:215
> github.com/oklog/run.(*Group).Run.func1       C:/Users/jayan/go/pkg/mod/github.com/oklog/[email protected]/group.go:38
> runtime.goexit        C:/Users/jayan/scoop/apps/go/current/src/runtime/asm_amd64.s:1594
rename mod file: rename C:\Users\jayan\scoop\apps\go\current\src\gitlab.wikimedia.org\repos\releng\cli\.bingo\bingo.tmp.mod C:\Users\jayan\scoop\apps\go\current\src\gitlab.wikimedia.org\repos\releng\cli\.bingo\bingo.mod: The process cannot access the file because it is being used by another process.

Anything else we need to know:

@bwplotka
Copy link
Owner

Thanks! Interesting. I can try fixing rename for windows. Sounds like there is some window specific, thanks for sharing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants