Skip to content

Commit

Permalink
Use Go >=1.16 style go install
Browse files Browse the repository at this point in the history
With Go 1.16 we can just do go install with version suffix.
Also GO111MODULES=on is default starting with Go 1.16.
  • Loading branch information
andrzej-kaczmarek authored and Michał Narajowski committed Oct 4, 2021
1 parent 0f372de commit 7c0b848
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions newt_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,10 @@ retry_3_times() {
}

export GOPATH=$HOME/gopath
export GO111MODULE=on

mkdir -p $HOME/bin $GOPATH || true

go version

retry_3_times go get -v mynewt.apache.org/newt/newt

rm -rf $GOPATH/bin $GOPATH/pkg

retry_3_times go install -v mynewt.apache.org/newt/newt
retry_3_times go install -v mynewt.apache.org/newt/newt@latest

cp $GOPATH/bin/newt $HOME/bin

0 comments on commit 7c0b848

Please sign in to comment.