Skip to content

Commit

Permalink
docs: Gopkg.toml.md version
Browse files Browse the repository at this point in the history
  • Loading branch information
darkowlzz committed Jul 13, 2017
1 parent fc00707 commit ab65bec
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/Gopkg.toml.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,17 @@ An `override` has the same structure as a `constraint` declaration, but supersed
system2-data = "value that is used by another system"
```

## `version`

`version` is a property of `constraint`s and `override`s. It is used to specify
version constraint of a specific dependency.

Internally, dep uses [Masterminds/semver](https://github.com/Masterminds/semver)
to work with semver versioning.

[Why is dep ignoreing a version constraint in the manifest?](https://github.com/golang/dep/blob/master/FAQ.md#why-is-dep-ignoring-a-version-constraint-in-the-manifest)


# Example

Here's an example of a sample Gopkg.toml with most of the elements
Expand Down Expand Up @@ -102,4 +113,4 @@ codename = "foo"

[metadata]
propertyX = "valueX"
```
```

0 comments on commit ab65bec

Please sign in to comment.