-
Notifications
You must be signed in to change notification settings - Fork 18k
os/exec: go fmt fails inside docker container #34318
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
Comments
I am unable to reproduce this behavior. Here are the steps I followed. Is there anything different about your execution?
|
Thank you for your interest in this issue. I ran it the same way as you and it worked fine. I use docker desktop community version 2.1.0.3(38240) It failed with ci runner docker in gitlab running as a self-host, too.
Under the same conditions(on docker images with volume mounted / gitlab-ci worker on docker), Thank you. |
I'm going to try reproducing this on a windows server installation. Will report back with details. |
Thank you so much. It's my mistake, so sorry. In my original case, I was vendoring and storing a module in a private repository, Thank you. |
I wrote some notes with additional informations. if it’s case like that(using vendor option with a private repository),
Thanks. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
run this code in docker image golang:1.13.0
What did you expect to see?
It works well.
I apply go fmt to "app/cmd/filename.go" file exactly.
What did you see instead?
In windows, golang 1.13.0 It works.
In ubuntu, WSL golang 1.13.0 It works.
In docker image golang:1.12.9, It works.
In docker image golang:1.13.0 It failed.
If I run command in bash shell directly from cmd.String() output
(like
/usr/local/go/bin/go fmt /go/src/app/cmd/filename.go
) at golang:1.13.0 docker image,it works well.
Thank you.
The text was updated successfully, but these errors were encountered: