'parts/go' property does not match the required schema: 'plugin' is a required property

Bug #1827887 reported by Alvaro Uria
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snap Store Server
Invalid
Undecided
Unassigned
Snapcraft
Fix Released
Undecided
Unassigned

Bug Description

While trying to build [1] using the Snapstore build farm, I got the error pasted below for all archs. However, in [2], it is explicitly mentioned that in order to use a newer Go version, the extra part to be configured should be (ie. from the doc):
"""
go:
  source-tag: go1.7.5
"""

Since snapcraft.yaml is using base core18, I'm not sure if something may have changed? Could you please guide me and possibly update the docs? Thank you.

1. https://github.com/auria/snap-grafana/blob/master/snapcraft.yaml
2. https://docs.snapcraft.io/go-applications

Running pull phase...
Using 'snapcraft.yaml': Project assets will be searched for from the 'snap' directory.
Issues while validating snapcraft.yaml: The 'parts/go' property does not match the required schema: 'plugin' is a required property
Build failed
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/lpbuildd/target/build_snap.py", line 253, in run
    self.pull()
  File "/usr/lib/python2.7/dist-packages/lpbuildd/target/build_snap.py", line 219, in pull
    env=env)
  File "/usr/lib/python2.7/dist-packages/lpbuildd/target/build_snap.py", line 97, in run_build_command
    return self.backend.run(args, env=full_env, **kwargs)
  File "/usr/lib/python2.7/dist-packages/lpbuildd/target/lxd.py", line 497, in run
    subprocess.check_call(cmd, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
    raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['lxc', 'exec', 'lp-bionic-s390x', '--env', 'LANG=C.UTF-8', '--env', 'SHELL=/bin/sh', '--env', 'SNAPCRAFT_LOCAL_SOURCES=1', '--env', 'SNAPCRAFT_SETUP_CORE=1', '--env', 'SNAPCRAFT_BUILD_INFO=1', '--env', 'SNAPCRAFT_IMAGE_INFO={"build_url": "https://launchpad.net/~build.snapcraft.io/+snap/ae01291f418f790aeb84a167f91878ca/+build/550176"}', '--env', 'SNAPCRAFT_BUILD_ENVIRONMENT=host', '--env', 'http_proxy=http://10.10.10.1:8222/', '--env', 'https_proxy=http://10.10.10.1:8222/', '--env', 'GIT_PROXY_COMMAND=/usr/local/bin/snap-git-proxy', '--', '/bin/sh', '-c', 'cd /build/grafana && linux64 snapcraft pull']' returned non-zero exit status 2

Alvaro Uria (aluria)
tags: added: canonical-bootstack
Revision history for this message
Ian Johnson (anonymouse67) wrote :

Yes now since you define a base in the snap you can't use remote parts which is what the `go` part is.

Instead for the go plugin specifically you should just use go-channel to select the version of go you need, otherwise without the `after: [go]` the go plugin will by default install the latest channel of the go snap to do the build.

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

This is no longer part of the documentation

Changed in snapcraft:
status: New → Fix Released
Daniel Manrique (roadmr)
Changed in snapstore:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.