No longer able to install Salesforce CLI on alpine linux (Docker): "env: unrecognized option: S" #3153
Labels
bug
Issue or pull request that identifies or fixes a bug
more information required
Issue requires more information or a response from the customer
Summary
We run all of our builds in Docker containers using Alpine linux as the base operating system. Since last week our build has started failing - SF will no longer run.
The error message is:
"env: unrecognized option: S"
I've done some investigation, it looks like
#!/usr/bin/env node
changed to#!/usr/bin/env -S node --no-deprecation
as part of this PR: https://github.com/salesforcecli/cli/pull/1971/files. This makes use of the -S option inenv
but this option isn't available on all operating systems. In particular, this isn't available in Busybox which is what's used in Alpine Linux.Please could you revert this changes and look to implement another way without use of -S?
Version:
2.69.14
Update:
I have worked around this by adding coreutils (
apk add coreutils
) into the image. This has the newer version ofenv
which supports the-S
argument.This could still be other cases of the same issue.
The text was updated successfully, but these errors were encountered: