devcontainers / devcontainers/cli

Variable substitution for environment variables does not work when using the command line argument --remote-env

未关闭
#641 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
feature-request
主要语言
TypeScript
星标
3k
派生
457
平均合并
13 小时 17 分钟
30 天内合并 PR
6

描述

I tried to extend the PATH environment variable used inside the container from the command line like this:

devcontainer exec --remote-env PATH='${containerEnv:PATH}':/my-additional-path --workspace-folder . bash

However, it seems the variable substitution does not work here. When I add the same to the devcontainer.json, then the variable substitution works as expected.

Am I doing something wrong, or is it just not implemented? If not, would it be possible to add this feature?

Thanks,
Thomas

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。