Skip to content

Commit 5c15177

Browse files
committed
disable gopls in the go folder
1 parent fc2ee9b commit 5c15177

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ go-compiler: go/$(GO_VERSION)
7676
# into other text, and a local development server that serves a read-only
7777
# view of your source code and is not intended for production use.
7878
go/$(GO_VERSION):
79-
mkdir -p go/$(GO_VERSION) && cd go/$(GO_VERSION) && curl -LO https://go.dev/dl/go$(GO_VERSION).src.tar.gz && tar xzf go$(GO_VERSION).src.tar.gz
79+
mkdir -p go/$(GO_VERSION) && touch go/go.mod # Disable the Go language server in this folder
80+
cd go/$(GO_VERSION) && curl -LO https://go.dev/dl/go$(GO_VERSION).src.tar.gz && tar xzf go$(GO_VERSION).src.tar.gz
8081
cd go/$(GO_VERSION)/go && grep -qF "ctxt.buildinfo()" src/cmd/link/internal/ld/main.go # Make sure this call is still there
8182
cd go/$(GO_VERSION)/go/src/cmd/link/internal/ld && sed "s/ctxt.buildinfo/\\/\\/ctxt.buildinfo/" main.go > temp && mv temp main.go
8283
cd go/$(GO_VERSION)/go/src && if uname | grep -qE "MINGW|WIN32|CYGWIN"; then ./make.bat; else ./make.bash; fi

0 commit comments

Comments
 (0)