Merge pull request #3232 from hobti01/patch-3

Fix example and reference version matching syntax
pull/2926/merge
Matthew Fisher 7 years ago committed by GitHub
commit 646ab43bc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -7,10 +7,12 @@ This section of the guide covers best practices for `requirements.yaml` files.
Where possible, use version ranges instead of pinning to an exact version. The suggested default is to use a patch-level version match: Where possible, use version ranges instead of pinning to an exact version. The suggested default is to use a patch-level version match:
```yaml ```yaml
version: ^1.2.0 version: ~1.2.3
``` ```
This will match version 1.2.0 and any patches to that release (1.2.1, 1.2.999, and so on) This will match version `1.2.3` and any patches to that release. In other words, `~1.2.3` is equivalent to `>= 1.2.3, < 1.3.0`
For the complete version matching syntax, please see the [semver documentation](https://github.com/Masterminds/semver#checking-version-constraints)
### Repository URLs ### Repository URLs

Loading…
Cancel
Save