stages: prepend the stage name to messages

This commit is contained in:
Rodrigo Arias 2021-04-16 09:17:49 +02:00
parent 7c94997023
commit 64f077c4f6
2 changed files with 7 additions and 7 deletions

View File

@ -31,7 +31,7 @@ stdenv.mkDerivation {
#!/bin/sh #!/bin/sh
if [ -z "\$GARLIC_OUT" ]; then if [ -z "\$GARLIC_OUT" ]; then
>&2 echo "GARLIC_OUT not defined, aborting" >&2 echo "experiment: GARLIC_OUT not defined, aborting"
exit 1 exit 1
fi fi
@ -40,7 +40,7 @@ stdenv.mkDerivation {
export GARLIC_EXPERIMENT=$(basename $out) export GARLIC_EXPERIMENT=$(basename $out)
if [ -e "\$GARLIC_EXPERIMENT" ]; then if [ -e "\$GARLIC_EXPERIMENT" ]; then
>&2 echo "skipping, experiment exists: \$(pwd)/\$GARLIC_EXPERIMENT" >&2 echo "experiment: skipping, directory exists: \$GARLIC_EXPERIMENT"
exit 0 exit 0
fi fi
@ -49,7 +49,7 @@ stdenv.mkDerivation {
cd "\$GARLIC_EXPERIMENT" cd "\$GARLIC_EXPERIMENT"
${unitsLinks} ${unitsLinks}
echo "Running experiment \$GARLIC_EXPERIMENT" >&2 echo "experiment: running \$GARLIC_EXPERIMENT"
# This is an experiment formed by the following units: # This is an experiment formed by the following units:
${unitsString} ${unitsString}

View File

@ -56,17 +56,17 @@ stdenv.mkDerivation {
${desc} ${desc}
if [ -z "\$GARLIC_OUT" ]; then if [ -z "\$GARLIC_OUT" ]; then
>&2 echo "GARLIC_OUT not defined, aborting" >&2 echo "unit: GARLIC_OUT not defined, aborting"
exit 1 exit 1
fi fi
if [ -z "\$GARLIC_EXPERIMENT" ]; then if [ -z "\$GARLIC_EXPERIMENT" ]; then
>&2 echo "GARLIC_EXPERIMENT not defined, aborting" >&2 echo "unit: GARLIC_EXPERIMENT not defined, aborting"
exit 1 exit 1
fi fi
if [ -z "\$GARLIC_INDEX" ]; then if [ -z "\$GARLIC_INDEX" ]; then
>&2 echo "GARLIC_INDEX not defined, aborting" >&2 echo "unit: GARLIC_INDEX not defined, aborting"
exit 1 exit 1
fi fi
@ -86,7 +86,7 @@ stdenv.mkDerivation {
"\$GARLIC_INDEX/${safeExpName}" "\$GARLIC_INDEX/${safeExpName}"
if [ -e "\$GARLIC_UNIT" ]; then if [ -e "\$GARLIC_UNIT" ]; then
>&2 echo "skipping, unit path already exists: \$GARLIC_UNIT" >&2 echo "unit: skipping, already exists: \$GARLIC_UNIT"
exit 0 exit 0
fi fi