fix(images/code): run gopls install as sandbox user - #1905
Conversation
Site previewPreview: https://744abf30-site.fullsend-ai.workers.dev Commit: |
ReviewFindingsMedium
Low
Info
Previous runReviewFindingsMedium
Low
Previous runReviewFindingsMedium
Low
|
Move gopls install after USER sandbox so go install creates /sandbox/go owned by sandbox, not root. Fixes permission denied when Go auto-downloads a newer toolchain from go.mod constraints. Fixes #1904 Signed-off-by: Hector Martinez <hemartin@redhat.com>
d9611eb to
ab61e7f
Compare
Retro: PR #1905 —
|
Summary
go install goplsafterUSER sandboxin the code agentContainerfilego installnow creates/sandbox/goowned bysandboxinstead ofrootGOPATH/GOMODCACHEenv vars set before the user switch — Go's defaults ($HOME/go) work correctly once the user is rightTest plan
ls -la /sandbox/goshowssandboxownershipgo buildshould succeed withoutGOPATHoverridegoplsstill works:gopls versionFixes #1904