bingo
bingo copied to clipboard
bingo get fails on Windows: bingo.tmp.mod is being used by another process
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\[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:
Thanks! Interesting. I can try fixing rename for windows. Sounds like there is some window specific, thanks for sharing!