devcontainers / devcontainers/cli

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

Ouverte
#641 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
feature-request
Langage dominant
TypeScript
Étoiles
3k
Forks
457
Merge moyen
13 h 17 min
PR mergées (30 j)
6

Description

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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.