mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-22 19:07:48 +08:00
fix makefile failing when not in a git repo
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
This commit is contained in:
parent
057f0e281f
commit
6976ca7480
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user