Suggest code actions if the Bake file references a build stage that does not exist
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- docker, go
- Domain
- build-system, devtools
Research direction
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.
Written by the indexing model from the issue text.
Description
FROM scratch AS stage
FROM scratch AS stage2
target "default" {
target = "stage3"
}
We should suggest:
- changing
stage3tostageorstage2by scanning for all stages in the referenced Dockerfile - 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.
- Dominant language
- Go
- Stars
- 185
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from docker/docker-language-server
-
dockerfile
Difficulty 3/5 1-2 days Newbie friendliness 45/100
docker/docker-language-server#499 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
docker/docker-language-server#495 · 2 comments ·
-
bake
docker/docker-language-server#472 · 4 comments · 1 assignee ·
-
dockerfile
docker/docker-language-server#411 · 1 assignee ·
-
dockerfile
Difficulty 4/5 3-5 days Newbie friendliness 20/100
docker/docker-language-server#374 ·
All issues in docker/docker-language-server
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Bob Shell support Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
santhosh-tekuri/jsonschema#276 ·