← Back to issue list

Cannot easily skip `go mod download` with the `go` plugin

View original Github issue

Metadata

Project
rockcraft
Number
#510
Type
issue
State
open
Author
alnvdl-work
Labels
Created
Updated
Closed

Current evaluation

Feature request to add an option to skip 'go mod download' in the go plugin for vendored private dependencies. 899 days old, only a bot JIRA-sync comment, no maintainer triage. The hardcoded 'go mod download all' step still exists in craft-parts go_plugin.py.

Suggested action: needs triage

Reason: The issue has no labels, no assignee, and the only comment is an automated JIRA-sync bot (CRAFT-2621) — no maintainer has ever assessed or categorised it. The underlying problem is confirmed still present: craft-parts go_plugin.py line 137 hardcodes 'go mod download all' with no skip option. The reporter noted it belongs in snapcraft/craft-parts, adding cross-project triage complexity.

Impact: 30 Quick Win: 19.5 Staleness: 70 Complexity: 35 Confidence: 75 Support Request: 25

Issue body

### What needs to get done When building with the `go` plugin, it's currently impossible to skip `go mod download` without overriding the entire build script as follows: ``` parts: mypart: plugin: go source-type: local source: . override-build: | go install ./... ``` ### Why it needs to get done Skipping `go mod download` can be useful in cases where private dependencies were vendored before being passed to `rockcraft`. I believe in reality this is related to `snapcraft`, but I'm reporting it here anyway, please move the issue if needed. See the `go` plugin at: https://github.com/canonical/snapcraft/blob/main/snapcraft_legacy/plugins/v2/go.py

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 30
Quick Win: 19.5
Staleness: 70
Complexity: 35
Confidence: 75
Support Request: 25
needs triage Feature request to add an option to skip 'go mod download' in the go plugin for vendored private dependencies. 899 days old, only a bot JIRA-sync comment, no maintainer triage. The hardcoded 'go mod download all' step still exists in craft-parts go_plugin.py.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 20
Confidence: 75
Support Request: 10
needs triage Feature request to add a configuration option to skip go mod download in the go plugin, enabling use of vendored dependencies. Currently unlabelled and inactive for over a year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 20
Confidence: 75
Support Request: 10
needs triage Feature request to add a configuration option to skip go mod download in the go plugin for vendored dependencies. Untriaged and inactive for over a year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 20
Confidence: 75
Support Request: 10
needs triage Feature request to add a flag to skip go mod download in the go plugin, currently requiring full build script overrides. Untriaged and inactive for over a year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 40
Confidence: 75
Support Request: 20
close stale The go plugin lacks a built-in option to skip go mod download, forcing full build script overrides for vendored dependencies. Reported over two years ago, it has internal Jira ticket CRAFT-2621 but remains unaddressed and awaiting triage.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.