← Back to issue list

when the host doesn't have installed a library needed by a go snap, the build fails

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1513935
Type
issue
State
closed
Author
~elopio
Labels
Created
Updated
Closed

Current evaluation

Closed without comments or resolution. The reported Go snap build failure when host libraries are missing remains unaddressed, indicating the report was abandoned.

Suggested action:

No scores available.

Issue body

Some go packages will need libraries. If those libraries are not installed in the system, snapcraft allows you to pull them as stage-packages. But in the case of go, when building the source code it is not looking for those libraries on the snap path, so the build fails. To reproduce: - make sure that libgudev-1.0-dev is not installed on your system and try to build the following snap: name: godd version: 1.0 vendor: Michael Vogt <email address hidden> binaries: godd: exec: ./bin/godd summary: Simple dd like tool description: Written in go with support for device auto-detection via libgudev, you would need to use hw-assign to access devices. icon: icon.png parts: godd: plugin: go source: git://github.com/mvo5/godd stage-packages: [libgudev-1.0-dev] snap: - usr/lib/x86_64-linux-gnu/libgudev-1.0.so* - usr/lib/x86_64-linux-gnu/libobject-2.0.so* - usr/lib/x86_64-linux-gnu/libglib-2.0.so* - bin/godd*

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed without comments or resolution. The reported Go snap build failure when host libraries are missing remains unaddressed, indicating the report was abandoned.
qwen/qwen3.6-35b-a3b Closed without resolution. Go snap builds fail when the host lacks required libraries, ignoring stage-packages configuration. No fix or follow-up was provided.
qwen3.6-35b-a3b-mtp-q6 Abandoned. The Go snap build failure caused by missing host libraries was closed without comments, resolution, or a fix.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1751 the go plugin doesn't use go build-snaps snapcraft closed Closed without resolution or discussion. The report appears abandoned or superseded, with no fix implemented or merge details provided.
71%