Skip to content

Commit aee425f

Browse files
authored
Update README.md examples to reflect the need for a "dependencies" key
1 parent aed1f0b commit aee425f

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ precisely:
9797
9898
```toml
9999
# pkgx:
100-
# openssl.org: 1.1.1n
100+
# dependencies:
101+
# openssl.org: 1.1.1n
101102
102103
[package]
103104
name = "my cargo project"
@@ -116,9 +117,11 @@ we read a special `pkgx` node:
116117
```json
117118
{
118119
"pkgx": {
119-
"openssl.org": "1.1.1n",
120-
"deno": "^2",
121-
"npm": null
120+
"dependencies": {
121+
"openssl.org": "1.1.1n",
122+
"deno": "^2",
123+
"npm": null
124+
}
122125
}
123126
}
124127
```
@@ -130,10 +133,13 @@ You can also make a `pkgx.yaml` file.
130133
You can add your own environment variables if you like:
131134
132135
```toml
136+
# ---
133137
# pkgx:
134-
# openssl.org: 1.1.1n
135-
# env:
136-
# MY_VAR: my-value
138+
# dependencies:
139+
# openssl.org: 1.1.1n
140+
# env:
141+
# MY_VAR: my-value
142+
# ---
137143
```
138144
139145
> [!CAUTION]

0 commit comments

Comments
 (0)