Skip to content

Commit

Permalink
Fix the depends-on example in the catalog spec (#581)
Browse files Browse the repository at this point in the history
It was using the old table notation.
  • Loading branch information
mosteo authored Oct 20, 2020
1 parent 3a5a234 commit b5ad3d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doc/catalog-format-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,13 @@ static, i.e. they cannot depend on the context.
'...' = false
```

- `depends-on`: optional dynamic dependencies expression. For instance:
- `depends-on`: optional array of dynamic dependencies expressions. For instance:

```toml
[depends-on]
[[depends-on]] # A static dependency
libfoo = "^1.2"

[[depends-on]] # A dynamic dependency
[depends-on.'case(os)'.linux]
libbar = "^2.0"

Expand Down

0 comments on commit b5ad3d2

Please sign in to comment.