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