Skip to content

Commit 185211d

Browse files
committed
Always do 'cabal sandbox init'.
Running 'cabal sandbox init' when the sandbox is already initialized doesn't cause problems. On the other hand, when guarded by '[ ! -e ${sandbox_dir} ]', it's possible for the dependency sandbox configurations to disappear.
1 parent d30c8a4 commit 185211d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

build-sandbox.sh

+4-6
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,10 @@ for repo in ${PRIVATE_GITHUB_REPOS} ; do
8585
fi
8686
done
8787

88-
if [ ! -e ${sandbox_dir} ] ; then
89-
for pkg in ${PKGS} ; do
90-
(cd deps/$pkg && ${CABAL} sandbox --sandbox="${HERE}/${sandbox_dir}" init)
91-
done
92-
${CABAL} sandbox --sandbox="${HERE}/${sandbox_dir}" init
93-
fi
88+
for pkg in ${PKGS} ; do
89+
(cd deps/$pkg && ${CABAL} sandbox --sandbox="${HERE}/${sandbox_dir}" init)
90+
done
91+
${CABAL} sandbox --sandbox="${HERE}/${sandbox_dir}" init
9492

9593
if [ "${dotests}" == "true" ] ; then
9694
for pkg in saw-script llvm-verifier jvm-verifier cryptol-verifier saw-core ; do

0 commit comments

Comments
 (0)