From 2b03b95c2fc028dbe3f1522edb43ce905a11c50e Mon Sep 17 00:00:00 2001 From: Dmitri Shuralyov Date: Sun, 31 Jan 2021 14:36:03 -0500 Subject: [PATCH 1/2] CI: update to Go 1.12.17 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update the CI script to test against Go 1.12.17¹, the latest minor release in the Go 1.12.x series. ¹ https://golang.org/doc/devel/release.html#go1.12.minor --- circle.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circle.yml b/circle.yml index ff570187d..0f4ea2bc7 100644 --- a/circle.yml +++ b/circle.yml @@ -11,7 +11,7 @@ jobs: - checkout - run: git clone https://github.com/creationix/nvm $HOME/.nvm && cd $HOME/.nvm && git checkout v0.33.9 && echo 'export NVM_DIR="$HOME/.nvm"' >> $BASH_ENV && echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV - run: nvm install 10.0.0 && nvm alias default 10.0.0 - - run: cd /usr/local && sudo rm -rf go && curl https://storage.googleapis.com/golang/go1.12.16.linux-amd64.tar.gz | sudo tar -xz + - run: cd /usr/local && sudo rm -rf go && curl https://storage.googleapis.com/golang/go1.12.17.linux-amd64.tar.gz | sudo tar -xz - run: echo 'export PATH="$PATH:/usr/local/go/bin:$HOME/go/bin"' >> $BASH_ENV - run: go get -t -d -v ./... - run: go install -v From 4415183bdc91b121f7f85ab7e5a7f65d957aa210 Mon Sep 17 00:00:00 2001 From: Dmitri Shuralyov Date: Sun, 31 Jan 2021 16:42:17 -0500 Subject: [PATCH 2/2] CI: specify fixed version of node-gyp The latest version of node-gyp (v7.1.2 at this time) is not compatible with Node v10.0.0 that circle.yml installs. Go back to a known working version of node-gyp to get a working CI. Fixes #987. --- circle.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circle.yml b/circle.yml index 0f4ea2bc7..9c90fb65d 100644 --- a/circle.yml +++ b/circle.yml @@ -16,7 +16,7 @@ jobs: - run: go get -t -d -v ./... - run: go install -v - run: npm install # Install our (dev) dependencies from package.json. - - run: npm install --global node-gyp + - run: npm install --global node-gyp@5.1.1 - run: cd node-syscall && node-gyp rebuild && mkdir -p ~/.node_libraries && cp build/Release/syscall.node ~/.node_libraries/syscall.node - run: go generate github.com/gopherjs/gopherjs/compiler/prelude