devcontainers / devcontainers/cli

Add "no-lockfile" as an option to "devcontainer.json" config file

オープン
#1,282 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
3k
フォーク
457
平均マージ
13時間 17分
マージ済み PR(30日)
6

説明

Add a `no-lockfile` option to `devcontainer.json` to disable the generation and validation of `.devcontainer-lock.json`.

For example:

```json
{
"name": "my-devcontainer",
"noLockfile": true
}
```

The CLI already supports:

```bash
devcontainer up --no-lockfile
devcontainer build --no-lockfile
```

However, there is currently no way to configure this behavior directly in `devcontainer.json`.

This is especially problematic when the Dev Container CLI is invoked indirectly by an editor or IDE. In that case, users do not necessarily control the CLI arguments and therefore cannot easily pass `--no-lockfile`.

In my workflow, I intentionally do not want a lockfile. When `.devcontainer-lock.json` is generated or changes, it can cause the environment to be considered out of date and trigger an unnecessary rebuild. Deleting the lockfile allows me to reconnect to the existing container without rebuilding it, but having to manually remove it is a poor workaround.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start by tracing how the existing --no-lockfile option is handled by the devcontainer up and build commands, then follow how devcontainer.json options are parsed. Done means noLockfile in devcontainer.json disables .devcontainer-lock.json generation and validation when the CLI is invoked indirectly.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
typescript
領域
cli
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
68/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。