mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-27 07:57:30 +08:00
Merge pull request #1865 from ipfs/fix/makefile-sha
fix makefile failing when not in a git repo
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
all: install
|
||||
commit = `git rev-parse --short HEAD`
|
||||
commit = $(shell git rev-parse --short HEAD 2> /dev/null || echo unknown)
|
||||
ldflags = "-X "github.com/ipfs/go-ipfs/repo/config".CurrentCommit=$(commit)"
|
||||
|
||||
build:
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
)
|
||||
|
||||
// CurrentVersionNumber is the current application's version literal
|
||||
const CurrentVersionNumber = "0.3.8"
|
||||
const CurrentVersionNumber = "0.3.9-dev"
|
||||
|
||||
// CurrentCommit is the current git commit, this is set as a ldflag in the Makefile
|
||||
var CurrentCommit string
|
||||
|
Reference in New Issue
Block a user