Skip to content

Commit

Permalink
Link the old cabal config location to new
Browse files Browse the repository at this point in the history
  • Loading branch information
harendra-kumar committed Dec 18, 2023
1 parent eed527e commit 491eca3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1339,9 +1339,19 @@ ensure_cabal_config() {
run_verbose_errexit rm -f "$cfg"
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
if test ! -f $cfg
then
if test -f ${OS_APP_HOME}/.config/cabal/config
then
mkdir -p $(dirname $cfg)
run_verbose_errexit ln -s ${OS_APP_HOME}/.config/cabal/config $cfg
fi
fi
fi

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

0 comments on commit 491eca3

Please sign in to comment.