snapcraft fails to build the snap: Failed to run 'go get -t -d ...

Bug #1931623 reported by Vladimir Grevtsev
This bug affects 1 person
Affects Status Importance Assigned to Milestone
prometheus-ceph-exporter snap

Bug Description

ubuntu@node04:~/snap-prometheus-ceph-exporter$ git branch
* stable/3.0.0-nautilus
ubuntu@node04:~/snap-prometheus-ceph-exporter$ git rev-parse HEAD
ubuntu@node04:~/snap-prometheus-ceph-exporter$ git remote show origin
* remote origin
  Fetch URL: git://
  Push URL: git://
  HEAD branch: master
  Remote branches:
    beta tracked
    master tracked
    stable/2.0.7-luminous tracked
    stable/3.0.0-nautilus tracked
  Local branches configured for 'git pull':
    master merges with remote master
    stable/3.0.0-nautilus merges with remote stable/3.0.0-nautilus
  Local refs configured for 'git push':
    master pushes to master (up to date)
    stable/3.0.0-nautilus pushes to stable/3.0.0-nautilus (up to date)
ubuntu@node04:~/snap-prometheus-ceph-exporter$ snapcraft
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/parts/ceph-exporter/src'...
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 '5d050f19bb58f34db721334cbb6a85ced63f3c66'.

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 ./
go: go.mod file not found in current directory or any parent directory; see 'go help modules'
Failed to run 'go get -t -d ./' for 'ceph-exporter': Exited with code 1.
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.

Revision history for this message
Vladimir Grevtsev (vlgrevtsev) wrote :

Tried building the master branch, got another error:

Sorry, an error occurred in Snapcraft:
The linker version '2.23' used by the base 'core' is incompatible with files in this snap:
    /home/ubuntu/snap-prometheus-ceph-exporter/prime/usr/lib/x86_64-linux-gnu/ceph/ (2.29)
    /home/ubuntu/snap-prometheus-ceph-exporter/prime/usr/lib/x86_64-linux-gnu/ (2.25)
    /home/ubuntu/snap-prometheus-ceph-exporter/prime/usr/lib/x86_64-linux-gnu/ (2.30)
    /home/ubuntu/snap-prometheus-ceph-exporter/prime/usr/lib/x86_64-linux-gnu/ (2.29)

description: updated
Edin S (exsdev)
Changed in charm-prometheus-ceph-exporter:
importance: Undecided → Medium
Nobuto Murata (nobuto)
affects: charm-prometheus-ceph-exporter → snap-prometheus-ceph-exporter
Revision history for this message
Nobuto Murata (nobuto) wrote :
Changed in snap-prometheus-ceph-exporter:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers