diff --git a/docs/reference/recipe_file.md b/docs/reference/recipe_file.md index 35d8e7b00..26ddbb4ca 100644 --- a/docs/reference/recipe_file.md +++ b/docs/reference/recipe_file.md @@ -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 diff --git a/test-data/pins.yaml b/test-data/pins.yaml index bab7e9014..157933e10 100644 --- a/test-data/pins.yaml +++ b/test-data/pins.yaml @@ -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"