Skip to content
This repository was archived by the owner on May 20, 2024. It is now read-only.

Commit fac42e9

Browse files
authored
Merge pull request #35 from input-output-hk/how-to-update-dependencies
Document how to update dependencies
2 parents fad4dc6 + d144a9e commit fac42e9

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

CONTRIBUTING.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Contributing
2+
3+
## How to update dependencies
4+
5+
1. Go to https://github.com/input-output-hk/plutus-apps/tags and take note of the latest `plutus-starter-devcontainer` tag and its commit hash.
6+
2. Update the tag and/or hash in the following files:
7+
- `.devcontainer/devcontainer.json`
8+
- `nix/sources.json`
9+
- `nix/pkgs/haskell/haskell.nix`
10+
- `cabal.project`
11+
3. Copy over most of https://github.com/input-output-hk/plutus-apps/blob/main/cabal.project into `cabal.project`
12+
4. Copy over the `sha256map` values from https://github.com/input-output-hk/plutus-apps/blob/main/nix/pkgs/haskell/haskell.nix into `nix/pkgs/haskell/haskell.nix` (but leave the first line that you just changed in step 2). To get the right hash value for `plutus-apps`, change one digit, then run `nix-shell`. You will get an error that shows the correct hash.
13+
5. It’s likely that the code for the guessing game needs to be changed; luckily, you can copy the source from https://github.com/input-output-hk/plutus-apps/blob/main/plutus-playground-server/usecases/Game.hs roughly, and it should work.
14+
6. Test the different parts:
15+
- VSCode
16+
* You need to make sure to rebuild the image
17+
* Then, once in VSCode, do `cabal build` and `cabal test`, and then make sure HLS works
18+
- nix
19+
* `nix-shell`
20+
* `cabal build`/`cabal test`

0 commit comments

Comments
 (0)