Skip to content

mutate: a file this machine's build leaves out is not asked about - #73

Merged
aledbf merged 1 commit into
mainfrom
mutate-host-build
Oct 27, 2026
Merged

aledbf merged 1 commit into
mainfrom
mutate-host-build

Conversation

@aledbf

@aledbf aledbf commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

spin's browser terminal, cmd/term, is a js/wasm program. spin-stack/spin#709 changes it, so mutate planned 44 edits there. Asking them runs go list . from the package's directory, and on linux go list finds no package ("build constraints exclude all Go files"). The run failed with mutate: listing .: exit status 1, which is the short lane's failure in spin's run.

No test run on that machine compiles such a file, so none could refuse an edit of it. Changed now leaves it out, by the build's own rule (go/build's MatchFile: its constraint, or a name like _js.go). The mutate page says so.

TestTheLinesAChangeTouchesAreTheOnesItChanged adds a //go:build js && wasm file and a _js.go file, and I saw it go red with the check removed. task test and task lint pass.

🤖 Generated with Claude Code

spin's browser terminal is a js/wasm program, cmd/term; a change to it planned edits there, and
asking them listed the package from its directory, where on linux go list finds no package at all
("build constraints exclude all Go files"), and the run failed. No test run on this machine
compiles such a file, so none could refuse an edit of it: Changed leaves it out, by the build's
own rule (go/build's MatchFile - its constraint, or a name like _js.go), and the page says so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aledbf
aledbf merged commit 2c668bd into main Oct 27, 2026
3 checks passed
@aledbf
aledbf deleted the mutate-host-build branch October 27, 2026 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant