Skip to content

Commit 9ee0174

Browse files
geroplona-agent
andcommitted
Also clear gitpod user's Go build cache
The go clean -cache only clears root's cache. The golangci-lint install runs as USER gitpod and hits stale go1.24.9 objects in /home/gitpod/.cache/go-build. Co-authored-by: Ona <no-reply@ona.com>
1 parent 8cc3630 commit 9ee0174

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

dev/image/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ RUN rm -rf /usr/local/go \
1616
&& curl -fsSL "https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz" | tar -C /usr/local -xz \
1717
&& ln -sf /usr/local/go/bin/go /usr/bin/go \
1818
&& ln -sf /usr/local/go/bin/gofmt /usr/bin/gofmt \
19-
&& go clean -cache
19+
&& go clean -cache \
20+
&& rm -rf /home/gitpod/.cache/go-build
2021
ENV PATH=/usr/local/go/bin:$PATH
2122

2223
### cloud_sql_proxy ###

0 commit comments

Comments
 (0)