version string quirk around commit hash
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-
This isn't a regression so we're punting till after the release.
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
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 -.