Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rcjsuen opened this issue Apr 19, 2025 · 0 comments
Labels

Comments

@rcjsuen
Copy link
Collaborator

rcjsuen commented Apr 19, 2025

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.

@rcjsuen rcjsuen added enhancement New feature or request bake labels Apr 19, 2025
@rcjsuen rcjsuen removed the enhancement New feature or request label May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant