Closed amokkara closed 2 years ago
You need to use special build tags to disable the c dependencies: https://github.com/containers/podman/blob/b9cbc0c09a68be7bb55048a494753c77c08bfbd3/Makefile#L45
You need to use special build tags to disable the c dependencies:
https://github.com/containers/podman/blob/b9cbc0c09a68be7bb55048a494753c77c08bfbd3/Makefile#L45
Sorry, didn't quite get it. Could you give an example or detail the steps?
I'm using podman/bindings in my go project and compilation fails when I try to build go binary for Mac.
I'm just using this module in my project github.com/containers/podman/v3
go build -tags "remote exclude_graphdriver_btrfs btrfs_noversion exclude_graphdriver_devicemapper containers_image_openpgp" ...
This feels more like a discussion then an issue.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Steps to reproduce the issue:
use podman/bindings v3 or v4 in a go program github.com/containers/podman/v3 v3.2.3 and github.com/containers/podman/v4 v4.2.1 in my case
cross compile with GOOS=darwin GOARCH=amd64
ex: GOOS=darwin GOARCH=amd64 go build -o podman-poc-darwin
Describe the results you received: github.com/containers/image/v5/signature /root/go/pkg/mod/github.com/containers/image/v5@v5.17.0/signature/mechanism_gpgme.go:17:16: undefined: gpgme.Context /root/go/pkg/mod/github.com/containers/image/v5@v5.17.0/signature/mechanism_gpgme.go:67:44: undefined: gpgme.Context /root/go/pkg/mod/github.com/containers/image/v5@v5.17.0/signature/mechanism_gpgme.go:68:14: undefined: gpgme.New /root/go/pkg/mod/github.com/containers/image/v5@v5.17.0/signature/mechanism_gpgme.go:72:27: undefined: gpgme.ProtocolOpenPGP /root/go/pkg/mod/github.com/containers/image/v5@v5.17.0/signature/mechanism_gpgme.go:76:28: undefined: gpgme.ProtocolOpenPGP /root/go/pkg/mod/github.com/containers/image/v5@v5.17.0/signature/mechanism_gpgme.go:98:20: undefined: gpgme.NewDataBytes /root/go/pkg/mod/github.com/containers/image/v5@v5.17.0/signature/mechanism_gpgme.go:127:20: undefined: gpgme.NewDataBytes /root/go/pkg/mod/github.com/containers/image/v5@v5.17.0/signature/mechanism_gpgme.go:132:18: undefined: gpgme.NewDataWriter /root/go/pkg/mod/github.com/containers/image/v5@v5.17.0/signature/mechanism_gpgme.go:136:25: undefined: gpgme.Key /root/go/pkg/mod/github.com/containers/image/v5@v5.17.0/signature/mechanism_gpgme.go:136:61: undefined: gpgme.SigModeNormal /root/go/pkg/mod/github.com/containers/image/v5@v5.17.0/signature/mechanism_gpgme.go:136:61: too many errors
Describe the results you expected: Expected to compile without any errors
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.): Ubuntu 20.04, go 1.17.1
project setup:
go.mod file :