Skip to content

Commit 3f26608

Browse files
authored
Merge pull request #5745 from commercialhaskell/stable
Stable
2 parents ce87b52 + b2aeb91 commit 3f26608

File tree

1 file changed

+17
-25
lines changed

1 file changed

+17
-25
lines changed

doc/maintainers/msys.md

Lines changed: 17 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,8 @@ the steps required to upgrade the MSYS2 version used by Stack.
2525
that does (using its `pacman` tool). Using the existing Stack-supplied
2626
MSYS2, in PowerShell and located in a folder with write permissions (so the `.tar.xz` file can be created):
2727

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
3330

3431
4. Create a new release tagged and named `msys2-YYYYMMDD` in the `master`
3532
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.
3936
file, to switch over to using the newly uploaded files. For example
4037
(extract):
4138

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
5651

5752
The `content-length:` key's value is the size of the file in bytes. It can
5853
be obtained from the `Length` field of the `dir` command. The `sha256:`
5954
key's value can be obtained from the command (in PowerShell):
6055

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()
6457

6558
The `sha256:` key only accepts lowercase hash results as values.
6659

@@ -72,9 +65,8 @@ the steps required to upgrade the MSYS2 version used by Stack.
7265

7366
* executing the command:
7467

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>
7870

7971
If all is well, the command should proceed to download the updated version
8072
of MSYS2 that has been specified.

0 commit comments

Comments
 (0)