You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
go build reports "Success" when go exits non-zero on a go.work pattern error #2203
rtk prints Go build: Success (and exits 0) when the underlying go build
actually fails with exit 1 on a Go workspace pattern error. Plain compile
errors are surfaced correctly, but this command/pattern error class is masked —
which can let a broken build pass local checks.
Reproduction (minimal)
mkdir -p /tmp/rtkbug/mod &&cd /tmp/rtkbug
printf'go 1.24\n\nuse (\n\t./mod\n)\n'> go.work # workspace root, NO root go.modprintf'module rtkbug/mod\ngo 1.24\n'> mod/go.mod
printf'package main\nfunc main() {}\n'> mod/main.go
"$(go env GOROOT)/bin/go" build ./... # real go: exit 1, "directory prefix . does not contain modules listed in go.work"
rtk go build ./... # rtk: "Go build: Success", exit 0 <-- WRONG
Expected
rtk go build reflects the real non-zero exit / surfaces the go error (or at least does not print Success).
Actual
Prints Go build: Success with exit 0, masking the failure. (rtk proxy go build ./... shows the real error, so the summarization layer infers success incorrectly.)
Notes
Compile errors (imported and not used, etc.) ARE shown correctly — masking appears specific to go command/pattern errors emitted as pattern ...: ... on stderr.
Environment
rtk: rtk 0.40.0
go: go version go1.26.3-X:nodwarf5 linux/amd64 · OS: linux/amd64
rtk go build reports Success and exits 0 when go exits non-zero on workspace pattern errors; the summarization layer misclassifies 'pattern ...: ...' stderr output as non-fatal, masking real build failures.
This looks like a simple fix that could be auto-resolved. Repo maintainers can use /wshm fix to attempt it.
Triaged automatically by wshm · This is an automated analysis, not a human review.
This appears to be already fixed in the current develop branch. Go build pattern error was fixed by commit f69ad6e (merged to develop via PR #2188). Please verify on latest develop and close if confirmed.
This was fixed by #2188 and shipped in v0.42.3. On the current code, rtk go build ./... on a go.work pattern error prints the pattern ./...: directory prefix ... message and exits 1, matching plain go. If you still see a masked failure on the latest version, comment here and we will reopen.
Activity
pszymkowiak commentedon Jun 1, 2026
🔍 Automated Triage
bughighSummary
rtk go build reports Success and exits 0 when go exits non-zero on workspace pattern errors; the summarization layer misclassifies 'pattern ...: ...' stderr output as non-fatal, masking real build failures.
Triaged automatically by wshm · This is an automated analysis, not a human review.
fix(go): detect go: pattern prefixed build errors
mikeangstadt commentedon Jun 2, 2026
This appears to be already fixed in the current
developbranch. Go build pattern error was fixed by commit f69ad6e (merged to develop via PR #2188). Please verify on latestdevelopand close if confirmed.KuSh commentedon Sep 13, 2026
This was fixed by #2188 and shipped in v0.42.3. On the current code,
rtk go build ./...on a go.work pattern error prints thepattern ./...: directory prefix ...message and exits 1, matching plain go. If you still see a masked failure on the latest version, comment here and we will reopen.