Skip to content

Commit

Permalink
chore: disable buildvcs
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Wang committed Dec 13, 2022
1 parent b876ae1 commit a20dd42
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ARG IPFS_PLUGINS
# Also: fix getting HEAD commit hash via git rev-parse.
RUN cd $SRC_DIR \
&& mkdir .git/objects \
&& make build GOTAGS=openssl IPFS_PLUGINS=$IPFS_PLUGINS
&& GOFLAGS=-buildvcs=false make build GOTAGS=openssl IPFS_PLUGINS=$IPFS_PLUGINS

# Get su-exec, a very minimal tool for dropping privileges,
# and tini, a very minimal init daemon for containers
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.testing
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ARG IPFS_PLUGINS
# Also: fix getting HEAD commit hash via git rev-parse.
RUN cd $SRC_DIR \
&& mkdir .git/objects \
&& make build GOTAGS=openssl IPFS_PLUGINS=$IPFS_PLUGINS
&& GOFLAGS=-buildvcs=false make build GOTAGS=openssl IPFS_PLUGINS=$IPFS_PLUGINS

# Get su-exec, a very minimal tool for dropping privileges,
# and tini, a very minimal init daemon for containers
Expand Down
4 changes: 2 additions & 2 deletions package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ do
ext=".exe"
fi
rm -f ../btfs-binary-releases/${goos}/${goarch}/*
GOOS=${goos} GOARCH=${goarch} make build
GOOS=${goos} GOARCH=${goarch} go build -o update-${goos}-${goarch}${ext} autoupdate/main.go
GOOS=${goos} GOARCH=${goarch} GOFLAGS=-buildvcs=false make build
GOOS=${goos} GOARCH=${goarch} GOFLAGS=-buildvcs=false go build -o update-${goos}-${goarch}${ext} autoupdate/main.go
md5=`openssl md5 ./cmd/btfs/btfs | awk '{print $2}'`
mv ./cmd/btfs/btfs ../btfs-binary-releases/${goos}/${goarch}/btfs-${goos}-${goarch}${ext}
mv update-${goos}-${goarch}${ext} ../btfs-binary-releases/${goos}/${goarch}/update-${goos}-${goarch}${ext}
Expand Down

0 comments on commit a20dd42

Please sign in to comment.