File tree Expand file tree Collapse file tree 2 files changed +29
-4
lines changed Expand file tree Collapse file tree 2 files changed +29
-4
lines changed Original file line number Diff line number Diff line change @@ -200,10 +200,9 @@ const (
200
200
)
201
201
202
202
type Package struct {
203
- kind packageKind
204
- name string
205
- // deliberately not adding omitempty
206
- Version string `json:"version"`
203
+ kind packageKind
204
+ name string
205
+ Version string `json:"version,omitempty"`
207
206
208
207
Platforms []string `json:"platforms,omitempty"`
209
208
ExcludedPlatforms []string `json:"excluded_platforms,omitempty"`
Original file line number Diff line number Diff line change
1
+ # Testscript for exercising adding packages using a flake ref
2
+
3
+ exec devbox install
4
+
5
+ exec devbox add github:F1bonacc1/process-compose/v0.40.2 --exclude-platform x86_64-darwin
6
+ json.superset devbox.json expected_devbox1.json
7
+
8
+ -- devbox.json --
9
+ {
10
+ "packages": [
11
+ "hello",
12
+ "cowsay@latest"
13
+ ]
14
+ }
15
+
16
+ -- expected_devbox1.json --
17
+ {
18
+ "packages": {
19
+ "hello": "",
20
+ "cowsay": "latest",
21
+ "github:F1bonacc1/process-compose/v0.40.2": {
22
+ "excluded_platforms": ["x86_64-darwin"]
23
+ }
24
+ }
25
+ }
26
+
You can’t perform that action at this time.
0 commit comments