← Back to issue list

plugins: add 'go-generate' GoPlugin option

View original Github issue

Metadata

Project
craft-parts
Number
#293
Type
pull request
State
merged
Author
tigarmo
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #293 in commit 2fa63f24, adding an opt-in go-generate list so GoPlugin no longer always runs go generate ./...

Resolution: closed resolved

Reason: PR #293 was approved and merged as commit 2fa63f24. It replaces automatic generation with configurable go-generate targets and adds documentation and tests.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Instead of always calling "go generate ./...", which might fail for Go projects that don't support it, add an explicit "go-generate" option to let users specify how code is generated in their parts. CRAFT-1406

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #293 in commit 2fa63f24, adding an opt-in go-generate list so GoPlugin no longer always runs go generate ./...
stealth/space-bunny-alpha — closed resolved Merged PR #293 added an explicit go-generate option, allowing custom Go code generation instead of always running go generate ./...; resolves CRAFT-1406.
stealth/space-bunny-alpha — closed resolved Added an optional go-generate setting to GoPlugin via merged PR #293, letting parts customize generation instead of always running go generate ./...
qwen/qwen3.6-35b-a3b — — Merged an update adding an explicit go-generate plugin option to let users specify custom code generation commands instead of always running go generate ./... . Approved by one reviewer, changed 3 files, and resolves CRAFT-1406.
qwen3.6-35b-a3b-mtp-q6 — — Merged addition of an explicit go-generate option to Go plugins. Replaces the mandatory go generate ./... command, allowing custom code generation commands and preventing failures in projects lacking Go generate support. Resolves CRAFT-1406.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#271 plugins: support "go generate" in go parts craft-parts merged Merged in commit 3e4a04fe: GoPlugin now runs go generate before builds, enabling code generation; released in craft-parts 1.13.0.
81%