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".
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".