Skip to content

Commit

Permalink
Install go locally
Browse files Browse the repository at this point in the history
Signed-off-by: cmoulliard <[email protected]>
  • Loading branch information
cmoulliard committed Aug 30, 2024
1 parent 372caa0 commit 297954a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/install_buildpack_testing_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,12 @@ pack config experimental true

print::message_with_color "${GREEN}" "Installing go framework."
curl -sSL "https://go.dev/dl/go1.23.0.linux-amd64.tar.gz" | tar -C ${BINARY_DIR} -xzv go
sudo mkdir -p $HOME/go
sudo mv ${BINARY_DIR}/go $HOME/go
export PATH=$PATH:$HOME/go/bin
export GOPATH=$HOME/go
sudo mkdir -p $HOME/bin/go
sudo mv ${BINARY_DIR}/go $HOME/bin/go
export PATH=$PATH:$HOME/bin/go/bin
export GOPATH=$HOME/bin/go
export PATH=$PATH:$GOPATH/bin
go version

print::message_with_color "${GREEN}" "Installing libpak/create-package."
go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/create-package@latest
Expand Down

0 comments on commit 297954a

Please sign in to comment.