File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 16
16
stack upgrade [--source-only] [--git] [--git-repo ARG] [--git-branch ARG]
17
17
~~~
18
18
19
- ` stack upgrade ` will get a new version of Stack.
19
+ ` stack upgrade ` will get a new version of Stack. It can also get a version
20
+ before the current version (downgrade).
21
+
22
+ !!! warning
23
+
24
+ If you use GHCup to install Stack, use only GHCup to upgrade Stack.
20
25
21
26
By default:
22
27
@@ -65,6 +70,13 @@ When compiling from source code, by default:
65
70
` --git-branch <branch> ` to specify a different branch and the option
66
71
` --git-repo <repo_url> ` to specify a different repository).
67
72
73
+ !!! note
74
+
75
+ An earlier version of Stack could be inconsistent with some of the current
76
+ contents of the Stack root. For further information about the contents of
77
+ the Stack root and configuring its location, see the documentation about the
78
+ [Stack root](stack_root.md).
79
+
68
80
## Examples
69
81
70
82
* ` stack upgrade ` seeks an upgrade to the latest version of Stack available as a
You can’t perform that action at this time.
0 commit comments