Skip to content

weft init for Go: run go mod tidy - #1

Merged
YHQZ1 merged 1 commit into
mainfrom
fix/init-go-tidy
Nov 23, 2026
Merged

YHQZ1 merged 1 commit into
mainfrom
fix/init-go-tidy

Conversation

@YHQZ1

@YHQZ1 YHQZ1 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Found by testing against the published go/v0.1.0 in a clean module. Test checks go get runs before generating and go mod tidy after.

Found by running weft init against the published go/v0.1.0 in a clean module:
go get of the module does not fetch the dependencies of the adapters the
generated file imports, so go build failed until go mod tidy ran. init now runs
it after writing the file (and never fails because of it). The test checks the
order of the two go calls.
@YHQZ1
YHQZ1 merged commit 9bdf321 into main Nov 23, 2026
3 checks passed
@YHQZ1
YHQZ1 deleted the fix/init-go-tidy branch November 23, 2026 12:22
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