Fix path of the buildinfo package in build commands.

This commit is contained in:
Qi Xiao 2019-12-29 23:03:19 +00:00
parent 1d63f33fc6
commit 34b0afe32f
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ default: test get
# TODO(xiaq): Add -trimpath when we require Go >= 1.13.
get:
go get -ldflags "-X github.com/elves/elvish/buildinfo.Version=$(VERSION)" .
go get -ldflags "-X github.com/elves/elvish/pkg/buildinfo.Version=$(VERSION)" .
buildall:
./tools/buildall.sh

View File

@ -39,8 +39,8 @@ buildone() {
echo -n "Building for $GOOS-$GOARCH... "
go build -o $DST_DIR/$BIN -trimpath -ldflags \
"-X github.com/elves/elvish/buildinfo.Version=$VERSION \
-X github.com/elves/elvish/buildinfo.Reproducible=true" || {
"-X github.com/elves/elvish/pkg/buildinfo.Version=$VERSION \
-X github.com/elves/elvish/pkg/buildinfo.Reproducible=true" || {
echo "Failed"
return
}