containers / skopeo

Work with remote images registries - retrieving information, images, signing content
Apache License 2.0
7.78k stars 757 forks source link

snap package build error #591

Closed lsm5 closed 5 years ago

lsm5 commented 5 years ago

I'm trying to build a snap package for skopeo, and it's build process tries to do this:

go get -t -d ./github.com/containers/skopeo/...
Building skopeo 
# github.com/containers/skopeo/integration
runtime.main_main·f: relocation target main.main not defined
runtime.main_main·f: undefined: "main.main"
go build -o /build/parts/skopeo/go/bin/skopeo github.com/containers/skopeo/cmd/skopeo
go build -o /build/parts/skopeo/go/bin/integration github.com/containers/skopeo/integration
Failed to run 'go build -o /build/parts/skopeo/go/bin/integration github.com/containers/skopeo/integration' for 'skopeo': Exited with code 2.

Any idea if that's something to be fixed upstream? I'm still in the beginning stages of snap packaging so I wonder if snap expects this to work by default, or if this is something that needs to be fixed in snap build process.

lsm5 commented 5 years ago

@runcom @mtrmac @rhatdan ^

lsm5 commented 5 years ago

btw, I'm using the containerized procedure mentioned at https://docs.snapcraft.io/build-on-docker/4158 but with go-1.10 from the gophers ppa instead of the default go-1.6 if that matters.

lsm5 commented 5 years ago

no worries on this, I'm working on using custom build steps instead of the default Go snap plugin steps. Will report back..