Skip to content

Commit

Permalink
fix: doc invalid pin expressions example (#1113)
Browse files Browse the repository at this point in the history
  • Loading branch information
olivier-roussel authored Oct 13, 2024
1 parent 69c38d3 commit 00fb375
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference/recipe_file.md
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ string containing only `x` and `.`, e.g. `max_pin="x.x.x"` would signify to pin
the given package to `<1.2.3` (if the package version is `1.2.2`, for example).
A pin with `min_pin="x.x",max_pin="x.x"` for a package of version `1.2.2` would
evaluate to `>=1.2.2,<1.2.3`.
evaluate to `>=1.2,<1.3.0a0`.
If `exact=true`, then the `hash` is included, and the package is pinned exactly,
e.g. `==1.2.2 h1234`. This is a unique package variant that cannot exist more
Expand Down
6 changes: 6 additions & 0 deletions test-data/pins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
upper_bound: "x.x.x"
spec: 9.0 hash
expected: "foo >=9.0,<9.0.1.0a0"
- pin:
name: "foo"
lower_bound: "x.x"
upper_bound: "x.x"
spec: 1.2.3 hash
expected: "foo >=1.2,<1.3.0a0"
- pin:
name: "foo"
lower_bound: "x.x.x.x"
Expand Down

0 comments on commit 00fb375

Please sign in to comment.