Skip to content

Commit a5b7a3a

Browse files
committed
Update doc/maintainers/releases.md
1 parent 0f4dfbd commit a5b7a3a

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

doc/maintainers/releases.md

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,28 @@ Examples:
149149
150150
* Upload `stack` package to Hackage: `stack upload . --pvp-bounds=lower`.
151151
152+
* If you get the error
153+
154+
> The field "build-tools" is deprecated in the Cabal specification version 2.0. Please use 'build-tool-depends' field
155+
156+
then edit `stack.cabal` locally and change all instances of
157+
158+
```
159+
build-tools:
160+
hsc2hs
161+
```
162+
163+
to
164+
165+
```
166+
build-tool-depends:
167+
hsc2hs:hsc2hs
168+
```
169+
170+
and try again, then discard the local changes to `stack.cabal`.
171+
172+
Hopefully this issue will be resolved and we can remove this instruction (alternatively, we could use a `verbatim` field in `package.yaml`).
173+
152174
* Reset the `release` branch to the released commit, e.g.: `git checkout release && git merge --ff-only vX.Y.Z && git push origin release`
153175
154176
* Update the `stable` branch similarly
@@ -190,13 +212,13 @@ Examples:
190212
* Merge any changes made in the RC/release/stable branches to master (be careful about version and changelog). It is best to do this by making a `ci/merge-stable-to-master` branch and waiting for CI to pass, then merging. If anything is complicated to merge, consider making it a PR and getting it reviewed rather than merging immediately.
191213
192214
193-
[email protected] mailing lists, subject `ANN: stack-X.Y.Z` (or `ANN: stack-X.Y release candidate`), containing the markdown for the release description from Github. `[RC]`
215+
[email protected] mailing lists, subject `ANN: stack-X.Y.Z` (or `ANN: stack-X.Y release candidate`), containing the release description from Github. `[RC]`
194216
195217
* For release candidates, also include a link to the Github Release (`https://github.com/commercialhaskell/stack/releases/tag/vX.Y.Z`) to download it. `[RC]`
196218
197219
* Update fpco/stack-build Docker images with new version
198220
199-
* Under [commercilhaskell/stackage/automated/dockerfiles](https://github.com/commercialhaskell/stackage/tree/master/automated/dockerfiles/), add `lts-X.Y/Dockerfile` (where `X.Y` is the latest stackage LTS version), containing (note where X.Z is the previous LTS version, and X.Y.Z is the newly released stack version)
221+
* Under [commercialhaskell/stackage/automated/dockerfiles](https://github.com/commercialhaskell/stackage/tree/master/automated/dockerfiles/), add `lts-X.Y/Dockerfile` (where `X.Y` is the latest stackage LTS version), containing (note where X.Z is the previous LTS version, and X.Y.Z is the newly released stack version)
200222
201223
```
202224
FROM $DOCKER_REPO:lts-X.Z
@@ -208,9 +230,10 @@ Examples:
208230
209231
* Run `./build.sh --push lts-X.Y && ./build.sh --push --small lts-X.Y` to push the new image to the registry.
210232
233+
211234
## Build Linux static binary distribution with Nix
212235
213-
NOTE: We have switched back to Alpine Linux for building static binaries, done by CI.
236+
**NOTE: We have switched back to Alpine Linux for building static binaries, done by CI. Leaving this section for future reference.**
214237
215238
These instructions are tested on Ubuntu 16.04, but theoretically should work on any Linux distribution.
216239

0 commit comments

Comments
 (0)