Skip to content

Commit

Permalink
fixup: link cabal configs
Browse files Browse the repository at this point in the history
  • Loading branch information
harendra-kumar committed Dec 17, 2023
1 parent f7b7e77 commit d0317f5
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions packcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1337,15 +1337,21 @@ ensure_cabal_config() {
then
echo "Removing old cabal config [$cfg]"
run_verbose_errexit rm -f "$cfg"
run_verbose $CABAL_BINARY_NAME user-config init || true
fi

# this generates it in ~/.config which creates issues for cabal-docspec and
# some other issues.
#if test ! -e $cfg
#then
# run_verbose $CABAL_BINARY_NAME user-config init || true
#fi
if test ! -e $cfg
then
run_verbose $CABAL_BINARY_NAME user-config init || true
if test ! -f $cfg
then
if test -f ${OS_APP_HOME}/.config/cabal/config
then
run_verbose ln -s ${OS_APP_HOME}/.config/cabal/config $cfg
fi
fi
fi

if test "$BUILD" = "cabal-v2"
then
Expand Down

0 comments on commit d0317f5

Please sign in to comment.