Skip to content

Commit decc1f8

Browse files
authored
Merge pull request #191 from caiych/code-server-golang
Code server golang: install GCC as well because gopls depends on it
2 parents fa52178 + d95b815 commit decc1f8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

root/etc/cont-init.d/98-golang

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ if [ -f "/golang/golang_${ARCH}.tar.gz" ]; then
1717
echo "Installing golang"
1818
tar xzf "/golang/golang_${ARCH}.tar.gz" -C /usr/local
1919
rm -rf /golang
20+
21+
echo "Installing gcc, to make CGO work"
22+
apt-get update && apt-get install -y gcc
2023
else
2124
echo "Golang already installed, skipping"
2225
fi

0 commit comments

Comments
 (0)