diff --git a/images/code/Containerfile b/images/code/Containerfile index ac8b280daa..8d642e66d4 100644 --- a/images/code/Containerfile +++ b/images/code/Containerfile @@ -71,16 +71,6 @@ RUN case "$TARGETARCH" in \ && tar -C /usr/local -xzf /tmp/go.tar.gz \ && rm /tmp/go.tar.gz -ENV PATH="/usr/local/go/bin:${PATH}" \ - GOPATH="/sandbox/go" \ - GOMODCACHE="/sandbox/go/pkg/mod" - -# --------------------------------------------------------------------------- -# gopls — Go language server for Claude Code LSP code intelligence. -ARG GOPLS_VERSION=0.18.1 -RUN GOBIN=/usr/local/go/bin go install "golang.org/x/tools/gopls@v${GOPLS_VERSION}" \ - && gopls version - # --------------------------------------------------------------------------- # lychee — markdown link checker used by pre-commit hooks (lint-md-links). # Baked into the image so pre-commit hooks work without network access. @@ -122,3 +112,9 @@ COPY scan-secrets /usr/local/bin/scan-secrets RUN chmod +x /usr/local/bin/scan-secrets USER sandbox + +# --------------------------------------------------------------------------- +# gopls — Go language server for Claude Code LSP code intelligence. +ENV PATH="/sandbox/go/bin:/usr/local/go/bin:${PATH}" +ARG GOPLS_VERSION=0.18.1 +RUN go install "golang.org/x/tools/gopls@v${GOPLS_VERSION}" && gopls version diff --git a/internal/cli/run.go b/internal/cli/run.go index 80d08abc95..d444930515 100644 --- a/internal/cli/run.go +++ b/internal/cli/run.go @@ -28,8 +28,8 @@ import ( "github.com/fullsend-ai/fullsend/internal/envfile" "github.com/fullsend-ai/fullsend/internal/fetch" "github.com/fullsend-ai/fullsend/internal/harness" - agentruntime "github.com/fullsend-ai/fullsend/internal/runtime" "github.com/fullsend-ai/fullsend/internal/resolve" + agentruntime "github.com/fullsend-ai/fullsend/internal/runtime" "github.com/fullsend-ai/fullsend/internal/sandbox" "github.com/fullsend-ai/fullsend/internal/scaffold" "github.com/fullsend-ai/fullsend/internal/security" @@ -872,10 +872,10 @@ func bootstrapEnv(sandboxName, repoDir string, h *harness.Harness, runtimeEnvExp // Infrastructure vars. pathExport := fmt.Sprintf("export PATH=%s/bin", sandbox.SandboxWorkspace) - if len(h.Plugins) > 0 { - pathExport += ":/usr/local/go/bin" - } + pathExport += ":/usr/local/go/bin" + pathExport += ":$HOME/go/bin" pathExport += ":$PATH" + lines = append(lines, pathExport) lines = append(lines, runtimeEnvExports...) lines = append(lines, fmt.Sprintf("export FULLSEND_OUTPUT_DIR=%s", outputDir))