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

Docker built go-ipfs fails to report its commit version #6622

Closed
olizilla opened this issue Sep 4, 2019 · 8 comments · Fixed by #6843
Closed

Docker built go-ipfs fails to report its commit version #6622

olizilla opened this issue Sep 4, 2019 · 8 comments · Fixed by #6843
Labels
kind/bug A bug in existing code (including security flaws)

Comments

@olizilla
Copy link
Member

olizilla commented Sep 4, 2019

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

$ docker run -d --name ipfs_host -v $ipfs_staging:/export -v $ipfs_data:/data/ipfs -p 4001:4001 -p 127.0.0.1:8080:8080 -p 127.0.0.1:5001:5001 ipfs/go-ipfs:latest

$ docker exec ipfs_host ipfs version --commit
ipfs version 0.4.22-

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.

@olizilla olizilla added the kind/bug A bug in existing code (including security flaws) label Sep 4, 2019
@olizilla
Copy link
Member Author

olizilla commented Sep 4, 2019

Some old prior art on this issue #2734

@olizilla
Copy link
Member Author

olizilla commented Sep 4, 2019

Looks like CI tests for this got disabled some time ago in this commit c103efc as part of the move to gx #2256

@Stebalien
Copy link
Member

Ah. This was broken in c8c0c48.

@Stebalien
Copy link
Member

Should be fixed in #6626.

@olizilla
Copy link
Member Author

@Stebalien this is happening again on master... neither the version command nor the prometheus stats for ipfs_info are reporting the current commit for the docker build

$ docker run --name ipfs-master ipfs/go-ipfs:master
# new shell
$ docker exec ipfs-master ipfs version --commit
ipfs version 0.5.0-dev

@olizilla
Copy link
Member Author

olizilla commented Jan 21, 2020

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

@Stebalien
Copy link
Member

Hm. Apparently, "append" is completely ignored when overridden in the command. I'm switching it to GOTAGS.

Stebalien added a commit that referenced this issue Jan 21, 2020
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)
ralendor pushed a commit to ralendor/go-ipfs that referenced this issue Jun 6, 2020
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)
ralendor pushed a commit to ralendor/go-ipfs that referenced this issue Jun 6, 2020
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)
ralendor pushed a commit to ralendor/go-ipfs that referenced this issue Jun 8, 2020
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)
ralendor pushed a commit to ralendor/go-ipfs that referenced this issue Jun 8, 2020
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)
ralendor pushed a commit to ralendor/go-ipfs that referenced this issue Jun 8, 2020
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)
ralendor pushed a commit to ralendor/go-ipfs that referenced this issue Jun 8, 2020
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug in existing code (including security flaws)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants