Skip to content

Commit 31c81e8

Browse files
committed
fix: use yaml kind instead of json kind for devcontainer.json
JSON is valid YAML, and updatecli's yaml kind uses yq which handles bracket notation better than the json kind's JSONPath implementation.
1 parent ca2fecd commit 31c81e8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

updatecli/updatecli.d/devcontainer.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,23 +40,23 @@ targets:
4040
dockerVersion:
4141
name: 'deps(devcontainer): update Docker version'
4242
scmid: default
43-
kind: json
43+
kind: yaml
4444
sourceid: dockerLatestMinor
4545
spec:
4646
file: .devcontainer/devcontainer.json
47-
key: '$.features["ghcr.io/devcontainers/features/docker-in-docker:2"].version'
47+
key: '.features["ghcr.io/devcontainers/features/docker-in-docker:2"].version'
4848
transformers:
4949
- trimprefix: v
5050
- addprefix: v
5151

5252
githubcliVersion:
5353
name: 'deps(devcontainer): update GitHub CLI version'
5454
scmid: default
55-
kind: json
55+
kind: yaml
5656
sourceid: githubcliLatestMinor
5757
spec:
5858
file: .devcontainer/devcontainer.json
59-
key: '$.features["ghcr.io/devcontainers/features/github-cli:1"].version'
59+
key: '.features["ghcr.io/devcontainers/features/github-cli:1"].version'
6060
transformers:
6161
- trimprefix: v
6262
- addprefix: v

0 commit comments

Comments
 (0)