mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-01 00:33:05 +08:00
Fix path of the buildinfo package in build commands.
This commit is contained in:
parent
1d63f33fc6
commit
34b0afe32f
2
Makefile
2
Makefile
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user