Commit fee697b
authored
[per-OS Packages] omitempty for version in expanded Package json representation (#1440)
## Summary
Discussing with @Lagoja, we felt that we can omit the version string if
its empty
## How was it tested?
`devbox add github:F1bonacc1/process-compose --exclude-platform
x86_64-darwin`:
BEFORE:
```
{
"packages": {
"github:F1bonacc1/process-compose/v0.40.2": {
"version": "",
"excluded_platforms": [
"x86_64-darwin"
]
}
},
...
}
```
AFTER:
```
{
"packages": {
"github:F1bonacc1/process-compose/v0.40.2": {
"excluded_platforms": [
"x86_64-darwin"
]
}
},
...
}
```1 parent 8e496f6 commit fee697b
File tree
2 files changed
+29
-4
lines changed- internal/devconfig
- testscripts/add
2 files changed
+29
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
207 | 206 | | |
208 | 207 | | |
209 | 208 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
0 commit comments