Skip to content

Commit 8effc97

Browse files
gountharclaude
andcommitted
fix: use bracket notation for JSON path in devcontainer updates
The JSON path query for devcontainer.json was using dot notation with quotes which failed to match keys containing special characters (dots, slashes, colons). Changed from: $.features."ghcr.io/devcontainers/features/docker-in-docker:2".version To bracket notation: $.features["ghcr.io/devcontainers/features/docker-in-docker:2"].version This fixes the updatecli workflow error: could not find value for query "$.features.\"ghcr.io/devcontainers/features/docker-in-docker:2\".version" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent c1f7ea5 commit 8effc97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

updatecli/updatecli.d/devcontainer.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ targets:
4343
kind: json
4444
spec:
4545
file: .devcontainer/devcontainer.json
46-
key: $.features."ghcr.io/devcontainers/features/docker-in-docker:2".version
46+
key: '$.features["ghcr.io/devcontainers/features/docker-in-docker:2"].version'
4747
sourceid: dockerLatestMinor
4848
transformers:
4949
- trimprefix: v
@@ -54,7 +54,7 @@ targets:
5454
kind: json
5555
spec:
5656
file: .devcontainer/devcontainer.json
57-
key: $.features."ghcr.io/devcontainers/features/github-cli:1".version
57+
key: '$.features["ghcr.io/devcontainers/features/github-cli:1"].version'
5858
sourceid: githubcliLatestMinor
5959
transformers:
6060
- trimprefix: v

0 commit comments

Comments
 (0)