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

[aws-cli] aws-cli feature does not contain less dependency #1224

Open
miketheman opened this issue Dec 18, 2024 · 0 comments · May be fixed by #1225
Open

[aws-cli] aws-cli feature does not contain less dependency #1224

miketheman opened this issue Dec 18, 2024 · 0 comments · May be fixed by #1225

Comments

@miketheman
Copy link

miketheman commented Dec 18, 2024

The https://ghcr.io/devcontainers/features/aws-cli does not install less which is a requirement for aws-cli.

$ aws sts get-caller-identity

Unable to redirect output to pager. Received the following error when opening pager:
[Errno 2] No such file or directory: 'less'

Learn more about configuring the output pager by running "aws help config-vars".

Setting the envvar overrides the default, allowing the commands to work.

$ export AWS_PAGER=""
$ aws sts get-caller-identity
... output ...

So in my mind, either the less dependency should be installed by the feature, or the envvar should be set to allow operation.
Yes, I realize this can be accomplished by adding less to a Dockerfile, but that is not the solution one should have to arrive to after the feature fails to work.

The "correct" one ought to be to install less instead of mucking with the user's env.

miketheman added a commit to miketheman/features that referenced this issue Dec 18, 2024
@miketheman miketheman linked a pull request Dec 18, 2024 that will close this issue
gauravsaini04 added a commit to gauravsaini04/features that referenced this issue Dec 19, 2024
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

Successfully merging a pull request may close this issue.

1 participant