Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
19 lines
847 B
Bash
Executable File
19 lines
847 B
Bash
Executable File
# shellcheck shell=bash
|
|
# this hook will symlink all dependencies found in ERL_LIBS
|
|
# since Elixir 1.12.2 elixir does not look into ERL_LIBS for
|
|
# elixir depencencies anymore, so those have to be symlinked to the _build directory
|
|
mkdir -p _build/"$MIX_BUILD_PREFIX"/lib
|
|
while read -r -d ':' lib; do
|
|
for dir in "$lib"/*; do
|
|
# Strip version number for directory name if it exists, so naming of
|
|
# all libs matches what mix's expectation.
|
|
dest=$(basename "$dir" | cut -d '-' -f1)
|
|
build_dir="_build/$MIX_BUILD_PREFIX/lib/$dest"
|
|
((MIX_DEBUG == 1)) && echo "Linking $dir to $build_dir"
|
|
# Symlink libs to _build so that mix can find them when compiling.
|
|
# This is what allows mix to compile the package without searching
|
|
# for dependencies over the network.
|
|
ln -s "$dir" "$build_dir"
|
|
done
|
|
done <<< "$ERL_LIBS:"
|