Bake variable typing support?

Open
#495 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
docker, go
Domain
devtools, tooling

Research direction

The issue does not name a file or test. Start by tracing how Bake variables are represented and validated, then review issue #490 and the linked Docker Bake variable-typing reference. Done means explicitly typed variables no longer produce erroneous diagnostics and their supported behavior is covered by tests.

Written by the indexing model from the issue text.

Description

Do you have any plans to support Bake (explicit) variable typing? If not planned, would you be open to it?

It just so happens I started using this server at the same time I was working on an older bake project which predated typing. As I was updating it to utilize typing, simple usages 'worked' (they didn't trigger any errors/warnings, but also didn't offer any new functionality), until I hit #490. While investigating, I saw there is no explicit support and that it was working 'on accident'. I'm now starting to run into things getting flagged as errors.

The typing feature is still relatively new; it was introduced six months ago (https://github.com/docker/buildx/releases/tag/v0.24.0), and I have yet to see it used in a public project. I wasn't surprised that it was not actively supported or that there were no open issues about it.

(All of my current errors went away by adding just five lines to the schema.)

Dominant language
Go
Stars
185
Forks
28
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from docker/docker-language-server

All issues in docker/docker-language-server

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.