← Back to issue list

go plugin: Add flag to run tests during build phase

View original Github issue

Metadata

Project
craft-parts
Number
#1493
Type
issue
State
open
Author
steinbro
Labels
Created
Updated
Closed

Current evaluation

Feature request to add an enable-checks build attribute to the go plugin so unit tests run during the build phase without an override-build script. Unlabelled, no comments or assignee, inactive ~5.7 months; feature not yet implemented.

Suggested action: needs triage

Reason: The issue is unlabelled with 0 comments and no assignee, showing no maintainer categorization or prioritization. The feature is confirmed unimplemented: go_plugin.py's get_build_commands still ends with 'go install ... ./...' and no 'enable-checks' attribute or commit exists in the repo. It is a well-scoped feature request that simply needs triage.

Impact: 30 Quick Win: 21.0 Staleness: 45 Complexity: 30 Confidence: 80 Support Request: 10

Issue body

### What needs to get done Add support to the go plugin for a `enable-checks` build attribute. When enabled, the final build command executed by the plugin should be `go test` with the proper arguments to run unit tests on the build artifact. Add a test case for the go plugin to confirm the new final command is added. Update the build attributes section of the go plugin documentation to describe the new parameter. ### Why it needs to get done Users should be able to run unit tests as part of their build without needing to specify an `override-build` script.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 30
Quick Win: 21.0
Staleness: 45
Complexity: 30
Confidence: 80
Support Request: 10
needs triage Feature request to add an enable-checks build attribute to the go plugin so unit tests run during the build phase without an override-build script. Unlabelled, no comments or assignee, inactive ~5.7 months; feature not yet implemented.
qwen/qwen3.6-35b-a3b
Staleness: 60
Complexity: 25
Confidence: 80
Support Request: 0
needs triage Feature request to add an enable-checks build attribute to the go plugin, allowing unit tests to run during the build phase without custom override scripts. Currently unlabelled and inactive for over four months.
qwen3.6-35b-a3b-mtp-q6
Staleness: 70
Complexity: 20
Confidence: 85
Support Request: 10
needs triage Feature request to add an enable-checks build attribute to the go plugin, allowing unit tests to run during the build phase without custom override scripts. Currently unlabelled and inactive for 119 days.
qwen3.6-35b-a3b-mtp-q6
Staleness: 65
Complexity: 25
Confidence: 85
Support Request: 0
needs triage Add enable-checks flag to go plugin to run unit tests during build. Requires implementation, test cases, and documentation updates. Open 99 days, zero comments, awaiting implementation.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1494 feat(go): Add `enable-check` build attribute and `go-testtags` property to run tests during build craft-parts open Adds enable-check build attribute and go-testtags property to the go plugin to run unit tests during build, with docs and tests. Review status changes_requested (2 reviewers, 26 unresolved comments); author added requested integration tests 145 days ago.
81%