← 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 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.

Suggested action:

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
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. Integrates go generate into the GoPlugin build step to execute code generation prior to compilation. Approved by a reviewer, passed CI checks, and modified five files. The change is backward compatible and resolves CRAFT-1316.
87%
#78 plugins: add go plugin (CRAFT-48) craft-parts merged Merged a Go plugin for go.mod-based projects, adapted from Snapcraft V2. Approved by two reviewers, passed CI, and introduced 425 additions across seven files. Co-authored by Sergio Schvezov.
75%