on master help sign in
Add the NOPLAN environment variable
efce817Stackage Curators
automated/build.sh+4−1
@@ -103,7 +103,10 @@ curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip
103# * Check that the plan is valid
103# * Check that the plan is valid
104# * Fetch all needed tarballs (the build step does not have write access to the tarball directory)
104# * Fetch all needed tarballs (the build step does not have write access to the tarball directory)
105# * Do a single unpack to create the package index cache (again due to directory perms)
105# * Do a single unpack to create the package index cache (again due to directory perms)
106+if [ "${NOPLAN:-}x" = "x"
107+then
106−docker run $ARGS_PREBUILD $IMAGE /bin/bash -c "$HOME/bin/stack update && stackage-curator create-plan --plan-file $PLAN_FILE --target $TARGET ${CONSTRAINTS:-} && stackage-curator check --plan-file $PLAN_FILE && stackage-curator fetch --plan-file $PLAN_FILE && cd /tmp && $HOME/bin/stack unpack random"
108+ docker run $ARGS_PREBUILD $IMAGE /bin/bash -c "$HOME/bin/stack update && stackage-curator create-plan --plan-file $PLAN_FILE --target $TARGET ${CONSTRAINTS:-} && stackage-curator check --plan-file $PLAN_FILE && stackage-curator fetch --plan-file $PLAN_FILE && cd /tmp && $HOME/bin/stack unpack random"
109+fi
107
110
108# Now do the actual build. We need to first set the owner of the home directory
111# Now do the actual build. We need to first set the owner of the home directory
109# correctly, so we run the command as root, change owner, and then use sudo to
112# correctly, so we run the command as root, change owner, and then use sudo to