Skip to content

Commit

Permalink
build: Update release.sh. (#8102)
Browse files Browse the repository at this point in the history
* Go 1.17
* Node v14
  • Loading branch information
danielmai committed Nov 30, 2021
1 parent 4aeb11f commit 021e21f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contrib/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ check_command_exists shasum
check_command_exists tar
check_command_exists zip

nvm install --lts
nvm install --lts=Fermium # Fermium is Node v14 LTS

# Don't use standard GOPATH. Create a new one.
unset GOBIN
Expand All @@ -83,7 +83,7 @@ mkdir $GOPATH
PATH="$GOPATH/bin:$PATH"

# The Go version used for release builds must match this version.
GOVERSION=${GOVERSION:-"1.16.2"}
GOVERSION=${GOVERSION:-"1.17.3"}

TAG=$1

Expand Down Expand Up @@ -116,7 +116,7 @@ commitTime="github.com/dgraph-io/dgraph/x.lastCommitTime"
jemallocXgoFlags=

# Get xgo and docker image
if [[ $GOVERSION =~ ^1\.16.* ]]; then
if [[ $GOVERSION =~ ^1\.16.* ]] || [[ $GOVERSION =~ ^1\.17.* ]]; then
# Build xgo docker image with 'go env -w GO111MODULE=auto' to support 1.16.x
docker build -f release/xgo.Dockerfile -t dgraph/xgo:go-${GOVERSION} --build-arg GOVERSION=${GOVERSION} .
# Instruct xgo to use alternative image
Expand Down

0 comments on commit 021e21f

Please sign in to comment.