这是indexloc提供的服务,不要输入任何密码
Skip to content

Flag malformed annotation as an error #99

@rcjsuen

Description

@rcjsuen

Since Bake expects annotations to be of the key=value form, we should create an error for this if we detect it in the language server.

target "t1" {
  annotations = [ "abc" ]
}
$ docker buildx bake --print t1
[+] Building 0.0s (1/1) FINISHED
 => [internal] load local bake definitions                                                                                                       0.0s
 => => reading compose.yaml 60B / 60B                                                                                                            0.0s
 => => reading docker-bake.hcl 42B / 42B                                                                                                         0.0s
ERROR: invalid annotation "abc", expected key=value

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions