This repository was archived by the owner on Sep 9, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -90,14 +90,6 @@ in the manifest. Transitive dependencies are unaffected.
90
90
91
91
Use an ` overrides ` entry for transitive dependencies.
92
92
93
- To pin a version of direct dependency in manifest, prefix the version with ` = ` .
94
- For example:
95
- ```
96
- [[constraint]]
97
- name = "github.com/pkg/errors"
98
- version = "=0.8.0"
99
- ```
100
-
101
93
By default, when you specify a version without an operator, such as ` ~ ` or ` = ` ,
102
94
` dep ` automatically adds a caret operator, ` ^ ` . The caret operator pins the
103
95
left-most non-zero digit in the version. For example:
@@ -107,6 +99,14 @@ left-most non-zero digit in the version. For example:
107
99
^0.0.3 means 0.0.3 <= X < 0.0.4
108
100
```
109
101
102
+ To pin a version of direct dependency in manifest, prefix the version with ` = ` .
103
+ For example:
104
+ ```
105
+ [[constraint]]
106
+ name = "github.com/pkg/errors"
107
+ version = "=0.8.0"
108
+ ```
109
+
110
110
111
111
## How do I constrain a transitive dependency's version?
112
112
First, if you're wondering about this because you're trying to keep the version
You can’t perform that action at this time.
0 commit comments