Skip to content

failed to load package alltransports: could not load export data: no export data for \"github.com/containers/image/v5/transports/alltransports\"" #1239

Answered by ldez
schlesh asked this question in Q&A
Discussion options

You must be logged in to vote

The module github.com/containers/image/v5 depends on github.com/containers/storage, and this module (github.com/containers/storage) uses cgo, so some system dependencies are required.

btrfs seems not available inside GitHub action environments.

You should add the following lines inside your workflow file:

jobs:
  lint:
    runs-on: ubuntu-latest
    env: # <-----
      CGO_ENABLED: 0 # <-----

https://github.com/ldez/schlesh-golangci-lint-example/blob/cf91acb93957391f6557e3112d1ddf5c0521a74b/.github/workflows/go_lint.yaml#L12-L13

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@ldez
Comment options

ldez May 21, 2025
Maintainer

@schlesh
Comment options

@ldez
Comment options

ldez May 21, 2025
Maintainer

@ldez
Comment options

ldez May 21, 2025
Maintainer

Answer selected by schlesh
@schlesh
Comment options

@ldez
Comment options

ldez May 21, 2025
Maintainer

@schlesh
Comment options

@ldez
Comment options

ldez May 21, 2025
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants