Skip to content

Commit

Permalink
workbench: in dev mode, prebuild the generator as well
Browse files Browse the repository at this point in the history
  • Loading branch information
deepfire committed Jul 20, 2021
1 parent b3a00ca commit f0548f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nix/workbench/default.nix
Expand Up @@ -139,10 +139,10 @@ let
''
git log -n1 --alternate-refs --pretty=format:"%Cred%cr %Cblue%h %Cgreen%D %Cblue%s%Creset" --color | sed "s/^/$(git diff --exit-code --quiet && echo ' ' || echo 'local changes + ')/"
echo
echo -n "workbench: prebuilding executables (because of useCabalRun):"
for exe in cardano-cli cardano-node cardano-topology locli
do echo -n " $exe"
${exeCabalOp "run" "$exe"} --help >/dev/null || return 1
echo -n "workbench: prebuilding executables (because of useCabalRun): "
for exe in tx-generator cardano-cli cardano-node cardano-topology locli
do echo -n "$exe "
${exeCabalOp "build" "$exe"} 2>&1 >/dev/null | { grep -v 'Temporary modify'; true; } || return 1
done
echo
''}
Expand Down
2 changes: 2 additions & 0 deletions shell.nix
Expand Up @@ -123,6 +123,8 @@ let
exactDeps = true;

shellHook = ''
echo 'nix-shell options & flags: withHoogle=${toString withHoogle} clusterProfile=${clusterProfile} autoStartCluster=${toString autoStartCluster} workbenchDevMode=${toString workbenchDevMode}'
${cluster.workbench.shellHook}
${lib.optionalString autoStartCluster ''
Expand Down

0 comments on commit f0548f6

Please sign in to comment.