Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Missing psapigenerator subcommand causes Nami wallet demo test to fail. #235

Closed
bwbush opened this issue Jan 10, 2022 · 0 comments · Fixed by #241
Closed

Missing psapigenerator subcommand causes Nami wallet demo test to fail. #235

bwbush opened this issue Jan 10, 2022 · 0 comments · Fixed by #241
Labels
bug Something isn't working

Comments

@bwbush
Copy link
Collaborator

bwbush commented Jan 10, 2022

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 marlowe-lang/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
@bwbush bwbush added the bug Something isn't working label Jan 10, 2022
@ghost ghost self-assigned this Jan 11, 2022
ghost pushed a commit that referenced this issue Jan 12, 2022
ghost pushed a commit that referenced this issue Jan 12, 2022
@ghost ghost closed this as completed in #241 Jan 12, 2022
ghost pushed a commit that referenced this issue Jan 12, 2022
* Fix the problem with pab-nami-demo psapigenerator #235

* fix

* Update readme
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant