The workflow was failing because one or more external libraries were not installed in the Ubuntu 22.04 image. Minimal dependency sets for importing the Go buildah package are documented here. In our case, we needed libbtrfs-dev, libdevmapper-dev and libgpgme11-dev.
Code of conduct
Problem statement
The workflow is failing to lint Go source code with golangci-lint. Here’s the log output:
Supporting information
make check
andmake build
locally without issuego get ./... && go mod tidy
explicitly in the workflow, also to no effectactions/checkout@v3
beforeactions/setup-go@v4
in the workflow. This didn’t fix the build, but it does allow caching to work properly.