Suggest code actions if the Bake file references a build stage that does not exist

オープン
#74 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
docker, go

調査の方向性

Start by tracing how a Bake target reference is resolved and how the referenced Dockerfile's stages can be scanned. Review the code-action behavior for replacing stage3 with stage or stage2, then assess the WorkspaceEdit UX for creating a FROM line in another file. Done means the supported suggestion behavior is defined and covered by tests.

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

説明

bake
FROM scratch AS stage
FROM scratch AS stage2
target "default" {
  target = "stage3"
}

We should suggest:

  1. changing stage3 to stage or stage2 by scanning for all stages in the referenced Dockerfile
  2. creating a new FROM line that will be named stage3

1 is straightforward. 2 may be questionable as we'd need to introduce a WorkspaceEdit for another file. We should review what the UX will look like before necessarily committing to implementing 2.

主要言語
Go
スター
185
フォーク
28
PR マージ指標
30日以内にマージされた PR はありません

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

docker/docker-language-server のほかの issue

docker/docker-language-server の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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