-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Docker built go-ipfs fails to report its commit version #6622
Comments
Some old prior art on this issue #2734 |
more context from https://github.com/protocol/bifrost-infra/issues/170#issuecomment-525930434 This is likely because we don't copy .git/objects) in the Docker build context. |
Ah. This was broken in c8c0c48. |
Should be fixed in #6626. |
@Stebalien this is happening again on master... neither the version command nor the prometheus stats for $ docker run --name ipfs-master ipfs/go-ipfs:master
# new shell
$ docker exec ipfs-master ipfs version --commit
ipfs version 0.5.0-dev |
the rc is ok tho $ docker run --name ipfs-rc ipfs/go-ipfs:v0.4.23-rc1
Unable to find image 'ipfs/go-ipfs:v0.4.23-rc1' locally
v0.4.23-rc1: Pulling from ipfs/go-ipfs
# new shell
$ docker exec ipfs-rc ipfs version --commit
ipfs version 0.4.23-rc1-c81bcc0 |
Hm. Apparently, "append" is completely ignored when overridden in the command. I'm switching it to GOTAGS. |
GOFLAGS will _override_ all the flags. If we just want to set a tag e.g., enable OpenSSL, we should set GOTAGS=openssl. fixes #6622 (comment)
GOFLAGS will _override_ all the flags. If we just want to set a tag e.g., enable OpenSSL, we should set GOTAGS=openssl. fixes ipfs#6622 (comment)
GOFLAGS will _override_ all the flags. If we just want to set a tag e.g., enable OpenSSL, we should set GOTAGS=openssl. fixes ipfs#6622 (comment)
GOFLAGS will _override_ all the flags. If we just want to set a tag e.g., enable OpenSSL, we should set GOTAGS=openssl. fixes ipfs#6622 (comment)
GOFLAGS will _override_ all the flags. If we just want to set a tag e.g., enable OpenSSL, we should set GOTAGS=openssl. fixes ipfs#6622 (comment)
GOFLAGS will _override_ all the flags. If we just want to set a tag e.g., enable OpenSSL, we should set GOTAGS=openssl. fixes ipfs#6622 (comment)
GOFLAGS will _override_ all the flags. If we just want to set a tag e.g., enable OpenSSL, we should set GOTAGS=openssl. fixes ipfs#6622 (comment)
Versions of go-ipfs built via our Dockerfile are unable to report their commit version, as initially reported by @gmasgras
To see this in action you can try out the go-ipfs:latest image and ask it for
ipfs version --commit
The output of the ipfs verison command should be the same when docker is used to build it.
We use docker built go-ipfs versions on the gateway and not being able to ask them for their commit will make reporting issues harder.
The text was updated successfully, but these errors were encountered: