SamBouwer / any-docker

Dockerized all-in-one instance of an anytype node
MIT License
67 stars 7 forks source link

Inconsistent paths in dev setup script #13

Closed dzshch closed 1 year ago

dzshch commented 1 year ago

Hi! Thank you for the effort in making this repo!

In the any-docker/scripts/setup_dev_env.sh, there's inconsistency in paths during the GO installation:

if [ "${GOLANG_VER_INSTALLED}" == "go version go${GOLANG_VER} linux/amd64" ] ; then
  echo "'go version go${GOLANG_VER} linux/amd64' is already installed, skipping..."
else
  echo "Installing 'go version go${GOLANG_VER} linux/amd64'"
  wget -N https://go.dev/dl/go${GOLANG_VER}.linux-amd64.tar.gz
  tar -C /usr/local -xzf $HOME/go${GOLANG_VER}.linux-amd64.tar.gz
  rm go${GOLANG_VER}.linux-amd64.tar.gz
fi

The .tar file is downloaded to the current directory but is expected to be in $HOME later.

Which gives this error:

tar (child): /home/<username>/go1.19.11.linux-amd64.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
SamBouwer commented 1 year ago

Thanks! Should be fixed in 24d3294 (testing, so I'm not closing the issue yet)

SamBouwer commented 1 year ago

Yep, should be fixed! I needed to additional commits to get it right 😬 65633b8 06e44230

dzshch commented 1 year ago

Works for me as well, thanks for the fix.