kubo icon indicating copy to clipboard operation
kubo copied to clipboard

version string quirk around commit hash

Open djdv opened this issue 7 years ago • 3 comments

Version information:

N/A

Type:

pedantic

Description:

When using a non-dev build of IPFS (release or RC), calling ipfs version --all or ipfs version --commit provides a version string with a trailing - but no commit hash. i.e. for release, rc, dev: ipfs version

0.4.18 0.4.19-rc1 0.4.19-rc1

ipfs version --all

0.4.18- 0.4.19-rc1- 0.4.19-rc1-149254eea

Edit: also appears when starting the daemon

Initializing daemon... go-ipfs version: 0.4.19-rc1-

djdv avatar Feb 25 '19 21:02 djdv

This isn't a regression so we're punting till after the release.

Stebalien avatar Feb 26 '19 20:02 Stebalien

It seems the issue is gone in last candidate. Installed from snap channel and it has commit id.

rayhu@ubuntu-pc:~$ snap install --channel candidate ipfs ipfs (candidate) v0.4.21 from Leo Arias (elopio) installed rayhu@ubuntu-pc:~$ ipfs version --all go-ipfs version: 0.4.21-8ca278f45 Repo version: 7 System version: amd64/linux Golang version: go1.12.6

rayhu@ubuntu-pc:~$ ipfs daemon Initializing daemon... go-ipfs version: 0.4.21-8ca278f45 Repo version: 7 System version: amd64/linux Golang version: go1.12.6

rayhu avatar Aug 28 '19 05:08 rayhu

This depends on the build system. Our distribution system builds go-ipfs without the hash but make build includes it.

Really, we should just drop the trailing -.

Stebalien avatar Aug 28 '19 06:08 Stebalien