Skip to content
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

Feature: Buildx bake HCL schema #3994

Open
mckelveygreg opened this issue Jul 3, 2023 · 3 comments
Open

Feature: Buildx bake HCL schema #3994

mckelveygreg opened this issue Jul 3, 2023 · 3 comments

Comments

@mckelveygreg
Copy link

Not sure if this is the right spot for a feature request, but I just started working with the new bake file syntax and noticed there doesn't seem to be any support for syntax highlighting inside of a .hcl file?

Hashicorp has a general extension for .hcl files, but it would be nice of course to have all of the docker fields available!

Would love to at least kick off the discussion!

@danegsta
Copy link
Contributor

danegsta commented Jul 6, 2023

@mckelveygreg from past experience, trying to have two competing syntax highlighting implementations for a specific language gets messy quickly; I'd suggest opening up an issue on the existing hcl extension or syntax implementations to request support for the bake file specific usage of hcl since that would provide the most straightforward path to proper syntax highlighting.

@mckelveygreg
Copy link
Author

I took a look at those repos, and I think I original talked about the wrong thing, a syntax highlighting implantation, which Hashicorp's vscode-hcl already provides.

They say they will highlight anything, but to get any intellisense, that is up to the language provider to make a schema available.

Could this extension instead provide a docker bake hcl schema?

@mckelveygreg mckelveygreg changed the title Feature: Buildx bake syntax highlighting Feature: Buildx bake HCL schema Jul 6, 2023
@dbreshears dbreshears added this to the Future milestone Jul 12, 2023
@ruffsl
Copy link

ruffsl commented Mar 31, 2024

I'd suggest opening up an issue on the existing hcl extension or syntax implementations to request support for the bake file specific usage of hcl since that would provide the most straightforward path to proper syntax highlighting.

@danegsta, as @mckelveygreg noted, it looks like the onus for docker domain specific support isn't on vscode-hcl:

Could this extension instead provide a docker bake hcl schema?

@mckelveygreg, is there an official schema for bake files yet? I couldn't find an static schema file detentions in the buildx repo:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants