6
6
7
7
~~~ text
8
8
stack upgrade [--binary-only] [--binary-platform ARG] [--force-download]
9
- [--binary-version ARG] [--github-org ARG] [--github-repo ARG]
9
+ [--[no-]only-local-bin] [--binary-version ARG] [--github-org ARG]
10
+ [--github-repo ARG]
10
11
~~~
11
12
12
13
or:
@@ -26,6 +27,20 @@ By default:
26
27
* the new version will not overwrite the existing version unless it is newer.
27
28
Pass the ` --force-download ` flag to force a download;
28
29
30
+ * when an existing binary distribution is applicable, it will be put in Stack's
31
+ local binary directory (see ` stack path --local-bin ` ) and named ` stack `
32
+ (replacing any existing executable named ` stack ` there);
33
+
34
+ * if the current running Stack executable is named ` stack ` (or, on Windows,
35
+ ` stack.exe ` ) (this is case insensitive), an existing binary distribution will
36
+ replace it. If the executable is located outside of Stack's local binary
37
+ directory, pass the ` --only-local-bin ` flag to skip that step;
38
+
39
+ * if the current running Stack executable is named other than ` stack ` (and, on
40
+ Windows, ` stack.exe ` ), an existing binary distribution will only be put in
41
+ Stack's local binary directory and named ` stack ` . Pass the
42
+ ` --no-only-local-bin ` flag to replace also the current running executable;
43
+
29
44
* the new version will be the latest available. Pass the
30
45
` --binary-version <version> ` option to specify the version (this implies
31
46
` --force-download ` );
@@ -39,15 +54,8 @@ By default:
39
54
repository; and
40
55
41
56
* the binary distribution will be sought for the current platform. Pass the
42
- ` --binary-platform <platform> ` option to specify a different platform (` <operating_system>-<architecture>-<suffix> ` ).
43
-
44
- When applicable, an existing binary distribution will be:
45
-
46
- * put in Stack's local binary directory (see ` stack path --local-bin ` ) and named
47
- ` stack ` (replacing any existing executable there named ` stack ` ); and
48
-
49
- * (if different) named the same as, and replace, the current running Stack
50
- executable.
57
+ ` --binary-platform <platform> ` option to specify a different platform
58
+ (` <operating_system>-<architecture>-<suffix> ` ).
51
59
52
60
When compiling from source code, by default:
53
61
@@ -65,13 +73,19 @@ When compiling from source code, by default:
65
73
* ` stack upgrade --force-download ` seeks an upgrade to the latest version of
66
74
Stack available as a binary distribution for the platform, even if not newer.
67
75
76
+ * If the Stack executable is named ` my-stack ` , ` my-stack upgrade ` seeks only to
77
+ put the latest version of Stack available as a binary distribution for the
78
+ platform, if newer, in Stack's local binary directory and name it ` stack ` .
79
+ ` my-stack upgrade --no-only-local-bin ` seeks also to upgrade ` my-stack ` to the
80
+ latest version of Stack available.
81
+
68
82
* ` stack upgrade --binary-version 2.11.1 ` seeks an upgrade to Stack 2.11.1 if
69
83
available as a binary distribution for the platform, even if not newer.
70
84
71
85
* ` stack upgrade --source-only ` seeks an upgrade by building Stack with
72
- Stack from the latest version of the source code in the package index
73
- (i.e. Hackage).
86
+ Stack from the latest version of the source code in the package index
87
+ (i.e. Hackage).
74
88
75
89
* ` stack upgrade --source-only --git ` seeks an upgrade by building Stack with
76
- Stack from the latest version of the source code in the ` master ` branch of
77
- Stack's repository.
90
+ Stack from the latest version of the source code in the ` master ` branch of
91
+ Stack's repository.
0 commit comments