Skip to content

make install:github.com/proglottis/gpgme: build constraints exclude all Go files in ... #6963

@silence-zxx

Description

@silence-zxx

Bug Report

What did you do?

install operator-sdk, commit:7c570e2778fea99dd78493c6b50f5d7da4ffc405

git clone https://github.com/operator-framework/operator-sdk.git
cd operator-sdk
make clean
make install

What did you expect to see?

install operator-sdk success

What did you see instead? Under which circumstances?

execute 'make install' failed: github.com/proglottis/gpgme: build constraints exclude all Go files in ...

Environment

ubuntu22.04

Possible Solution

The go.mod file of operator-sdk depends on gpgme, and this library needs to depend on the C library. However, the Makefile of operator-SDK defaults to export CGO_ENABLED=0, which leads to telling Go not to build any code that depends on C. The installation can be successful only after changing "export CGO_ENABLED=0" in the Makefile to "export CGO_ENABLED=1".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions