← Back to issue list

go plugin: support Go modules

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1802256
Type
issue
State
open
Author
~rogpeppe
Labels
Created
Updated
Closed

Current evaluation

Feature request for first-class Go modules support in the Go plugin. Now implemented: craft-parts' go plugin is go.mod-based (craft-parts#78), and snapcraft#3133 added go.mod support to the old v1 plugin. No activity for ~8 years.

Suggested action: close stale

Reason: The requested capability has been implemented elsewhere: craft-parts#78 merged a go.mod-based Go plugin (current craft_parts/plugins/go_plugin.py documents 'A plugin for go projects using go.mod' and runs 'go mod download all'), and snapcraft#3133 added go.mod support to the legacy v1 plugin. The issue is ~8 years old with zero comments, so it is both inactive and no longer applicable.

Impact: 20 Quick Win: 10.0 Staleness: 95 Complexity: 50 Confidence: 85 Support Request: 10

Issue body

Go modules are the new standard way of dealing with dependencies in Go. They work well, and we're using them in quite a few projects already. It would be great to have first class support for them in the Go plugin.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 20
Quick Win: 10.0
Staleness: 95
Complexity: 50
Confidence: 85
Support Request: 10
close stale Feature request for first-class Go modules support in the Go plugin. Now implemented: craft-parts' go plugin is go.mod-based (craft-parts#78), and snapcraft#3133 added go.mod support to the old v1 plugin. No activity for ~8 years.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 40
Confidence: 90
Support Request: 10
close stale Request to add first-class Go modules support to the Go plugin. Unlabelled, no maintainer interaction, inactive for nearly 7 years.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 25
Confidence: 85
Support Request: 10
close stale Request to add first-class Go modules support to the Go plugin. Unlabelled, no maintainer response, inactive for nearly 7 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 35
Confidence: 90
Support Request: 10
close stale Request to add Go modules support to the Go plugin. Unlabelled, no maintainer response, inactive for nearly 7 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 30
Confidence: 90
Support Request: 10
close stale Feature request to add Go modules support to the Go plugin. Open for over 7 years with zero maintainer interaction or labels. Clearly outdated as Go modules became the standard years ago.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: craft-parts#78 (confidence 85%)

    Merged PR adding a Go plugin for go.mod-based projects, adapted from Snapcraft V2; current go_plugin.py is go.mod-first.

  • Related To: snapcraft#3133 (confidence 75%)

    Merged PR adding limited Go Modules (go.mod) support for Go 1.11/1.12 in the v1 plugin.

Related issues

Issue Project State Summary Similarity
#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.
80%
#3046 plugins: introduce v2.GoPlugin snapcraft merged Merged after approval and CI checks. Introduces v2.GoPlugin for Go plugin support requiring go.mod and adds .get_build_snaps as an abstract method to PluginV2. Changes span 26 files with 366 additions and 49 deletions.
72%
#3133 go v1 plugin: go.mod support for 1.11 and 1.12 snapcraft merged Merged changes adding limited Go Modules support for Go 1.11 and 1.12. Introduces a _get_module helper for build target resolution and a one-time compatibility warning. Replaces PR #3132 after approval.
71%