Bake variable typing support?

Abierto
#495 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
docker, go
Área
devtools, tooling

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.)

Lenguaje dominante
Go
Estrellas
185
Forks
28
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de docker/docker-language-server

Todos los issues de docker/docker-language-server

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.