@@ -26,8 +26,9 @@ the steps required to upgrade the MSYS2 version used by Stack.
26
26
MSYS2, in PowerShell and located in a folder with write permissions (so the ` .tar.xz ` file can be created):
27
27
28
28
```
29
- > stack exec -- pacman -S tar
30
- > stack exec -- tar cJf msys2-YYYYMMDD-x86_64.tar.xz C:\msys64
29
+ stack exec -- pacman -S tar
30
+
31
+ stack exec -- tar cJf msys2-YYYYMMDD-x86_64.tar.xz C:\msys64
31
32
```
32
33
33
34
4. Create a new release tagged and named `msys2-YYYYMMDD` in the `master`
@@ -38,7 +39,7 @@ the steps required to upgrade the MSYS2 version used by Stack.
38
39
file, to switch over to using the newly uploaded files. For example
39
40
(extract):
40
41
41
- ~~~yaml
42
+ ```
42
43
# For upgrade instructions, see: https://github.com/commercialhaskell/stack/blob/stable/doc/maintainers/msys.md
43
44
msys2:
44
45
windows32:
@@ -51,15 +52,15 @@ the steps required to upgrade the MSYS2 version used by Stack.
51
52
url: "https://github.com/commercialhaskell/stackage-content/releases/download/msys2-20220503/msys2-20220503-x86_64.tar.xz"
52
53
content-length: 93835868
53
54
sha256: c918f66e984f70add313ee3a5c5b101132cd93d5a3f8e3555e129e2d3dcb3718
54
- ~~~
55
+ ```
55
56
56
57
The `content-length:` key's value is the size of the file in bytes. It can
57
58
be obtained from the `Length` field of the `dir` command. The `sha256:`
58
59
key's value can be obtained from the command (in PowerShell):
59
60
60
- ~~~
61
- ❯ (Get-FileHash msys2-YYYYMMDD-x86_64.tar.xz -Algorithm SHA256).Hash.ToLower()
62
- ~~~
61
+ ```
62
+ (Get-FileHash msys2-YYYYMMDD-x86_64.tar.xz -Algorithm SHA256).Hash.ToLower()
63
+ ```
63
64
64
65
The `sha256:` key only accepts lowercase hash results as values.
65
66
@@ -71,9 +72,9 @@ the steps required to upgrade the MSYS2 version used by Stack.
71
72
72
73
* executing the command:
73
74
74
- ~~~
75
- > stack setup --setup-info-yaml <path to local copy of stack-setup-2.yaml>
76
- ~~~
75
+ ```
76
+ stack setup --setup-info-yaml <path to local copy of stack-setup-2.yaml>
77
+ ```
77
78
78
79
If all is well, the command should proceed to download the updated version
79
80
of MSYS2 that has been specified.
0 commit comments