Skip to content

Commit d361447

Browse files
authored
Merge pull request #197 from docker/correct-builtin-args-list
Include BUILDKIT_SYNTAX in the list of built-in ARGs
2 parents f40c3fe + e41589a commit d361447

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ All notable changes to the Docker Language Server will be documented in this fil
44

55
## [Unreleased]
66

7+
### Added
8+
79
- Dockerfile
810
- textDocument/hover
911
- support configuring vulnerability hovers with an experimental setting ([#192](https://github.com/docker/docker-language-server/issues/192))
@@ -17,6 +19,12 @@ All notable changes to the Docker Language Server will be documented in this fil
1719
- textDocument/publishDiagnostics
1820
- support filtering vulnerability diagnostics with an experimental setting ([#192](https://github.com/docker/docker-language-server/issues/192))
1921

22+
### Fixed
23+
24+
- Bake
25+
- textDocument/publishDiagnostics
26+
- stop flagging `BUILDKIT_SYNTAX` as an unrecognized `ARG` ([#187](https://github.com/docker/docker-language-server/issues/187))
27+
2028
## [0.7.0] - 2025-05-09
2129

2230
### Added

internal/bake/hcl/diagnosticsCollector.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ var builtinArgs = []string{
3232
"BUILDKIT_CACHE_MOUNT_NS",
3333
"BUILDKIT_MULTI_PLATFORM",
3434
"BUILDKIT_SANDBOX_HOSTNAME",
35+
"BUILDKIT_SYNTAX",
3536
"BUILDKIT_DOCKERFILE_CHECK",
3637
"BUILDKIT_CONTEXT_KEEP_GIT_DIR",
3738
"SOURCE_DATE_EPOCH",

internal/bake/hcl/diagnosticsCollector_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func TestCollectDiagnostics(t *testing.T) {
127127
},
128128
{
129129
name: "args references built-in args",
130-
content: "target \"t1\" {\n args = {\n HTTP_PROXY = \"\"\n HTTPS_PROXY = \"\"\n FTP_PROXY = \"\"\n NO_PROXY = \"\"\n ALL_PROXY = \"\"\n }\n}",
130+
content: "target \"t1\" {\n args = {\n HTTP_PROXY = \"\"\n HTTPS_PROXY = \"\"\n FTP_PROXY = \"\"\n NO_PROXY = \"\"\n ALL_PROXY = \"\"\n BUILDKIT_SYNTAX = \"\"\n }\n}",
131131
diagnostics: []protocol.Diagnostic{},
132132
},
133133
{

0 commit comments

Comments
 (0)