- Go to https://github.com/input-output-hk/plutus-apps/tags and take note of the latest
plutus-starter-devcontainertag and its commit hash. - Update the tag and/or hash in the following files:
.devcontainer/devcontainer.jsonnix/sources.jsonnix/pkgs/haskell/haskell.nixcabal.project
- Copy over most of https://github.com/input-output-hk/plutus-apps/blob/main/cabal.project into
cabal.project - Copy over the
sha256mapvalues from https://github.com/input-output-hk/plutus-apps/blob/main/nix/pkgs/haskell/haskell.nix intonix/pkgs/haskell/haskell.nix(but leave the first line that you just changed in step 2). To get the right hash value forplutus-apps, change one digit, then runnix-shell. You will get an error that shows the correct hash. - 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.
- Test the different parts:
- VSCode
- You need to make sure to rebuild the image
- Then, once in VSCode, do
cabal buildandcabal test, and then make sure HLS works
- nix
nix-shellcabal build/cabal test
- VSCode