OffchainLabs / nitro

Nitro goes vroom and fixes everything
Other
726 stars 423 forks source link

Compilation error in 3.0.2 #2414

Open nuliknol opened 2 months ago

nuliknol commented 2 months ago

Compilation process fails when golang 1.20 is used, add golang version checking into make script to check that golang version is 1.21 or higher.

nitro-compile-error

zhangxf55 commented 2 months ago

When I uninstall go 1.20 and reinstall go 1.21 like this:

cd ~ && wget https://go.dev/dl/go1.21.11.linux-amd64.tar.gz && \
tar -zxvf go1.21.11.linux-amd64.tar.gz && \
mv ~/go /usr/local/ && \
echo "export GOPATH=\$HOME/go" >> ~/.profile && \
echo "export PATH=\$PATH:/usr/local/go/bin:\$GOPATH/bin" >> ~/.profile && \
source ~/.profile && \
rm -rf go1.21.11.linux-amd64.tar.gz

This problem is solved.

nuliknol commented 2 months ago

@zhangxf55 yeah, there is no problem, I am just notifying the team that the make script needs improvement