devcontainers / devcontainers/cli

Bug: _REMOTE_USER_HOME is empty when executing a Feature where common-utils configures the user

未關閉
#331 8 則留言 0 個 reaction 已指派 1 人 已被 @chrmarti 認領 在 GitHub 檢視
bug
主要語言
TypeScript
星號
3k
分支
457
平均合併
13 小時 17 分鐘
30 天內合併 PR
6

描述

Reported in https://github.com/devcontainers/features/issues/336#issuecomment-1360027876

```jsonc
// devcontainer.json
{
"image": "mcr.microsoft.com/dotnet/sdk:6.0-jammy",
"features": {
"ghcr.io/devcontainers/features/azure-cli:1": {
"version": "latest",
"installBicep": "true"
},
"ghcr.io/devcontainers/features/common-utils:2": {
"installZsh": true,
"installOhMyZsh": true,
"upgradePackages": true,
"username": "vscode",
"userUid": "1000",
"userGid": "1000"
}
},
"overrideFeatureInstallOrder": [
"ghcr.io/devcontainers/features/common-utils"
],
"remoteUser": "vscode"
}
```

While executing the `azure-cli` Feature, it logs the following values (added loggings in [install.sh](https://github.com/devcontainers/features/blob/main/src/azure-cli/install.sh))👇

image

Expected : The value of `_REMOTE_USER_HOME` should have been `/home/vscode`

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。