Skip to content

Commit

Permalink
Nothing is easy. Try a new way to not run leanpkg if it isn't found.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Oct 20, 2023
1 parent 9df3a8c commit 99a0d93
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,9 @@ _clone-test-dependencies: _clean-test-dependencies

# Rebuild some test fixtures used in the test suite.
_rebuild-test-fixtures:
cd "{{ fixtures }}/example-lean3-project/"; {{ if `leanpkg help 2>&1 >/dev/null; echo $?` == "0" { `leanpkg build` } else { "" } }}
cd "{{ fixtures }}/example-lean4-project/"; lake build
#!/usr/bin/env zsh
set -euxo pipefail
cd "{{ fixtures }}/example-lean3-project/"
leanpkg help 2>&1 >/dev/null && leanpkg build || echo "Lean 3 not found."
cd "{{ fixtures }}/example-lean4-project/"
lake build

0 comments on commit 99a0d93

Please sign in to comment.