IntersectMBO / plutus-apps

The Plutus application platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing `psapigenerator` subcommand causes Nami wallet demo test to fail.

bwbush opened this issue · comments

Summary

Doing a fresh nix-build in the top folder of plutus-apps fails because of a psapigenerator-related API change that breaks the Nami wallet demo. This issue also breaks the marlowe-pab executable, but I fixed this by recreating the psapigenerator subcommand in a new marlowe-pab-setup executable.

Steps to reproduce the behavior

  1. Clone the repo.
  2. Run nix-build in the top folder.

Actual Result

$ nix-build -j 1
. . .
Done: /nix/store/482541nkbflyzwxn6s5hhyvl75ip2cyq-pab-nami-demo-purescript
Invalid argument `psapigenerator'

Usage: plutus-pab-nami-demo [-v|--verbose] [--log-config LOG_CONFIG_FILE]
                            [--config CONFIG_FILE]
                            [--passphrase WALLET_PASSPHRASE]
                            [--rollback-history ROLLBACK_HISTORY]
                            [--resume-from HASH,SLOT] [-e|--ekg] [-m|--memory]
                            COMMAND

Available options:
  -h,--help                Show this help text
  -v,--verbose             Enable debugging output.
  --log-config LOG_CONFIG_FILE
                           Logging config file location.
  --config CONFIG_FILE     Config file location.
  --passphrase WALLET_PASSPHRASE
                           Wallet passphrase.
  --rollback-history ROLLBACK_HISTORY
                           How many blocks are remembered when rolling back
  --resume-from HASH,SLOT  Specify the hash and the slot where to start
                           synchronisation
  -e,--ekg                 Enable the EKG server
  -m,--memory              Use the memory-backed backend. If false, the beam
                           backend is used.

Available commands:
  migrate                  Update the database with the latest schema.
  all-servers              Run all the mock servers needed.
  client-services          Run the client services (all services except the mock
                           node).
  wallet-server            Run a mock version of the Cardano wallet API server.
  webserver                Start the PAB backend webserver.
  node-server              Run a mock version of the Cardano node API server.
  chain-index              Run the chain index.
  contracts                Manage your smart contracts.
builder for '/nix/store/qv80v93fc6cbvbgfnmx1f7gb4dl3bfcz-pab-nami-demo-purescript.drv' failed with exit code 1
error: build of '/nix/store/0qq3v0dmnfx5bkgv49p46vhwl0hgg8k8-pab-nami-demo.drv', '/nix/store/qv80v93fc6cbvbgfnmx1f7gb4dl3bfcz-pab-nami-demo-purescript.drv', '/nix/store/r8qky1ldvbgpsnkwys51vd1wlv7ginav-docker-build-push-devcontainer.drv', '/nix/store/wp7cb2z6ka45crvnzwy4cx1r4qxz5lv6-docker-image-plutus-devcontainer.tar.gz.drv', '/nix/store/xasqmypddnff4h4d357306hzyvfpgv0d-web-ghc.drv' failed

$ git log -n 1 --pretty=oneline
7f53f18dfc788bf6aa929f47d840efa1247e11fd (HEAD -> main, origin/main, origin/HEAD) Bump hls to 1.5.1 #209 (#232)

Expected Result

No error for nix-build.

Describe the approach you would take to fix this

We fixed a similar issue in input-output-hk/marlowe-cardano@4ff336d.

System info

$ git log -n 1 --pretty=oneline
7f53f18dfc788bf6aa929f47d840efa1247e11fd (HEAD -> main, origin/main, origin/HEAD) Bump hls to 1.5.1 #209 (#232)

$ uname -a
Linux oryx 5.10.74 #1-NixOS SMP Sun Oct 17 08:43:34 UTC 2021 x86_64 GNU/Linux