Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use Orb with Alpine #97

Open
FriedCircuits opened this issue Dec 16, 2024 · 3 comments
Open

Unable to use Orb with Alpine #97

FriedCircuits opened this issue Dec 16, 2024 · 3 comments
Assignees

Comments

@FriedCircuits
Copy link

FriedCircuits commented Dec 16, 2024

The orb uses the --gunzip option with tar but that is unsupported in Alpine's version of tar. It does however support -z. This should be updated to use the more compatible parameter.

See:

| $SUDO tar --no-same-owner --strip-components=1 --gunzip -x -C /usr/local/go/

Error is tar: unrecognized option: gunzip

Thanks.

Edit:

Also the same for --no-same-owner should be -o.

@david-montano-circleci
Copy link
Contributor

Hello @FriedCircuits . Supporting golang in Alpine turned to be harder than expected because of the following:

  • The available binaries in the golang release page do not include a binary of golang compatible with the Alpine filesystem, in particular with the muslibc implementation of C.
  • Adding Alpine, or a specific Linux distribution, logic to this orb would be out of scope given that Linux distributions might have some dependencies installed or not.
    If using Alpine I would rather recommend installing the tool using apk add go.
    Once installed you can use other commands available in this orb.

@FriedCircuits
Copy link
Author

FriedCircuits commented Jan 10, 2025

@david-montano-circleci

Thanks for the reply. I tried to use apk first but Alpine ships an older version of go. Using the orb was a last resort. Alpine has the short form of those options vs the full name. I used the script from the orb and changed those options and it works fine.

@david-montano-circleci
Copy link
Contributor

I will update the orb to build the go binary in Alpine with support from go 1.13 up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants