Skip to content

Move goyacc into its own module#9

Merged
kyleconroy merged 1 commit intomainfrom
claude/review-go-mod-deps-OlLvb
Apr 26, 2026
Merged

Move goyacc into its own module#9
kyleconroy merged 1 commit intomainfrom
claude/review-go-mod-deps-OlLvb

Conversation

@kyleconroy
Copy link
Copy Markdown
Contributor

The goyacc binary is a build-time code generator used to produce
parser/parser.go and parser/hintparser.go. It pulled in five direct
modernc.org dependencies (mathutil, parser, sortutil, strutil, y) plus
two indirect deps (golex, bigfft) that the runtime library never used.

Splitting goyacc into a nested module isolates those deps so the root
module now only requires golang.org/x/text. The Makefile builds goyacc
with go build -C goyacc so generation still works the same way.

The goyacc binary is a build-time code generator used to produce
parser/parser.go and parser/hintparser.go. It pulled in five direct
modernc.org dependencies (mathutil, parser, sortutil, strutil, y) plus
two indirect deps (golex, bigfft) that the runtime library never used.

Splitting goyacc into a nested module isolates those deps so the root
module now only requires golang.org/x/text. The Makefile builds goyacc
with `go build -C goyacc` so generation still works the same way.
@kyleconroy kyleconroy merged commit 2232bf3 into main Apr 26, 2026
1 check passed
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.

2 participants