← 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
2024-03-15 19:42:02+00:00
Updated
2025-08-15 15:12:46+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

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

No evaluation history available.