I need help understanding build fails

Hello,

I’m the author of Task. The Snapcraft setup can be found here.

The same setup used to work for Task v1.4.3, but all builds fail since v1.4.4. Nothing changed in the build process at all, specially because it just downloads the build from GitHub releases.

You can take a look at the build output here: https://build.snapcraft.io/user/go-task/snap/146178

I think the relevant part of the log is this:

/tmp/tmpk04zmxsn: 14: /tmp/tmpk04zmxsn: curl: not found

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Curl not found? Is this by design? Do someone have any idea?

Thanks in advance! =)

You need to tell snapcraft to install curl into the builder environment:

parts:
  task:
    ...
    build-packages:
    - curl
2 Likes

That fixed the issue. Thanks!