snapcraft fails to build the snap: Failed to run 'go get -t -d ...
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
prometheus-ceph-exporter snap |
Fix Released
|
Medium
|
Unassigned |
Bug Description
ubuntu@
master
* stable/
ubuntu@
c35368013ab6894
ubuntu@
* remote origin
Fetch URL: git://git.
Push URL: git://git.
HEAD branch: master
Remote branches:
beta tracked
master tracked
stable/
stable/
Local branches configured for 'git pull':
master merges with remote master
stable/
Local refs configured for 'git push':
master pushes to master (up to date)
stable/
ubuntu@
Launching a VM.
snapd is not logged in, snap install commands will use sudo
snap "core18" has no updates available
Pulling ceph-exporter
+ snapcraftctl pull
Cloning into '/root/
remote: Enumerating objects: 1280, done.
remote: Counting objects: 100% (20/20), done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 1280 (delta 5), reused 6 (delta 3), pack-reused 1260
Receiving objects: 100% (1280/1280), 784.98 KiB | 2.98 MiB/s, done.
Resolving deltas: 100% (723/723), done.
Note: checking out '5d050f19bb58f3
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
go get -t -d ./github.
go: go.mod file not found in current directory or any parent directory; see 'go help modules'
Failed to run 'go get -t -d ./github.
Verify that the part is using the correct parameters and try again.
Run the same command again with --debug to shell into the environment if you wish to introspect this failure.
ubuntu@
Related branches
- Xav Paice (community): Approve
-
Diff: 21 lines (+7/-0)1 file modifiedsnapcraft.yaml (+7/-0)
Changed in charm-prometheus-ceph-exporter: | |
importance: | Undecided → Medium |
affects: | charm-prometheus-ceph-exporter → snap-prometheus-ceph-exporter |
Tried building the master branch, got another error:
Sorry, an error occurred in Snapcraft: ubuntu/ snap-prometheus -ceph-exporter/ prime/usr/ lib/x86_ 64-linux- gnu/ceph/ libceph- common. so.2 (2.29) ubuntu/ snap-prometheus -ceph-exporter/ prime/usr/ lib/x86_ 64-linux- gnu/libcrypto. so.1.1 (2.25) ubuntu/ snap-prometheus -ceph-exporter/ prime/usr/ lib/x86_ 64-linux- gnu/libnspr4. so (2.30) ubuntu/ snap-prometheus -ceph-exporter/ prime/usr/ lib/x86_ 64-linux- gnu/libsqlite3. so.0.8. 6 (2.29)
The linker version '2.23' used by the base 'core' is incompatible with files in this snap:
/home/
/home/
/home/
/home/