Skip to content

Commit

Permalink
👻 update go version as gopls needs it
Browse files Browse the repository at this point in the history
Signed-off-by: Pranav Gaikwad <[email protected]>
  • Loading branch information
pranavgaikwad committed Dec 13, 2024
1 parent 256f94a commit 5b39d25
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions external-providers/generic-external-provider/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21 as go-builder
FROM golang:1.23 as go-builder

COPY / /analyzer-lsp

Expand All @@ -12,7 +12,7 @@ COPY external-providers/generic-external-provider/pkg/ pkg/

RUN go mod edit -replace=github.com/konveyor/analyzer-lsp=/analyzer-lsp && go mod tidy

RUN go build -o generic-external-provider main.go
RUN go build -o generic-external-provider main.go && go install golang.org/x/tools/gopls@latest

FROM quay.io/konveyor/golang-dependency-provider as go-dep-provider

Expand All @@ -26,8 +26,9 @@ RUN microdnf install gcc-c++ python-devel go-toolset python3-devel nodejs -y &&
RUN python3 -m ensurepip --upgrade
RUN python3 -m pip install 'python-lsp-server>=1.8.2'
RUN npm install -g typescript-language-server typescript
RUN go install golang.org/x/tools/gopls@latest


COPY --from=go-builder /go/bin/gopls /usr/local/bin/gopls
COPY --from=go-builder /generic-external-provider/generic-external-provider /usr/local/bin/generic-external-provider
COPY --from=go-dep-provider /usr/local/bin/golang-dependency-provider /usr/local/bin/golang-dependency-provider

Expand Down
2 changes: 1 addition & 1 deletion provider_container_settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"analysisMode": "full",
"providerSpecificConfig": {
"lspServerName": "generic",
"lspServerPath": "/root/go/bin/gopls",
"lspServerPath": "/usr/local/bin/gopls",
"lspServerArgs": [],
"lspServerInitializationOptions": "",

Expand Down
2 changes: 1 addition & 1 deletion provider_pod_local_settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"analysisMode": "full",
"providerSpecificConfig": {
"lspServerName": "generic",
"lspServerPath": "/root/go/bin/gopls",
"lspServerPath": "/usr/local/bin/gopls",
"lspServerArgs": [],
"lspServerInitializationOptions": "",

Expand Down
2 changes: 1 addition & 1 deletion provider_settings.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"initConfig": [{
"location": "/analyzer-lsp/examples/golang",
"providerSpecificConfig": {
"lspServerPath": "/root/go/bin/gopls"
"lspServerPath": "/usr/local/bin/gopls"
}
}]
},
Expand Down

0 comments on commit 5b39d25

Please sign in to comment.