Skip to content

Commit

Permalink
make generate app more idempotent
Browse files Browse the repository at this point in the history
  • Loading branch information
hall committed Jan 28, 2023
1 parent 7af982c commit 5bcab30
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,12 @@
generate = inputs.flake-utils.lib.mkApp {
drv = pkgs.writeShellScriptBin "gen-modules" ''
set -eo pipefail
dir=./modules/generated
rm -rf $dir
mkdir $dir
nix build '.#generate-k8s'
cp ./result/* ./modules/generated/
cp ./result/* $dir/
rm result
'';
Expand Down

0 comments on commit 5bcab30

Please sign in to comment.