Skip to content
Snippets Groups Projects
Commit 53bb8a21 authored by Brandon Chinn's avatar Brandon Chinn
Browse files

Update workflow for adding a patch

parent e5b583f6
No related branches found
No related tags found
1 merge request!319Add ghc-lib-parser patch
Pipeline #82784 failed
......@@ -134,20 +134,13 @@ initialize it as a git repository, and the patch.
### Adding a patch
The `scripts/patch-tool` script is a tool for conveniently authoring and updating
patches. For instance, if you find that the `doctest` package needs to be
patched first run:
```
$ scripts/patch-tool unpack doctest
```
This will extract a `doctest` source tree to `packages/doctest-$version` and
initialize it as a git repository. You can now proceed to edit the tree as
necessary and run
```
$ scripts/patch-tool update-patches
```
This will create an appropriately-named patch in `patches/` from the edits in
the `doctest` tree.
The `scripts/patch-tool` script is a tool for conveniently authoring and updating patches. For example, to patch the `doctest` package, you can run the following steps:
1. `scripts/patch-tool unpack doctest`
1. Modify files in `packages/doctest-$version/` as necessary
1. Build/test as normal, e.g. `cabal build doctest`
1. `scripts/patch-tool update-patches`
1. Commit the patch
### GitLab CI
......
-- Need an empty file for cabal.project.local to work
-- https://github.com/haskell/cabal/issues/9168
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment