From 13ef3732f99917be9daf18d3bc65e133c678380c Mon Sep 17 00:00:00 2001 From: sebthom Date: Sat, 20 Jul 2024 18:26:12 +0200 Subject: [PATCH] test --- .../actions/internal/install-haxelibs/action.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/actions/internal/install-haxelibs/action.yml b/.github/actions/internal/install-haxelibs/action.yml index 5eeb438..cf30949 100644 --- a/.github/actions/internal/install-haxelibs/action.yml +++ b/.github/actions/internal/install-haxelibs/action.yml @@ -75,6 +75,10 @@ runs: haxelib_version=$(haxelib version) echo "haxelib version: $haxelib_version" + if [[ $haxelib_version == "4.0.2" ]]; then + # workaround for "Uncaught exception - Failed with error: Eof" + haxelib --global update haxelib + fi (set -x; haxelib config) haxelibs='${{ inputs.haxe-libs }}' @@ -111,11 +115,7 @@ runs: # in case it was already loaded from cache, delete it to prevent git errors like "You have divergent branches and need to specify how to reconcile them." rm -rf "$HAXELIB_PATH/$lib_name/git" - if [[ $haxelib_version == "4.0.2" ]]; then # workaround for "Uncaught exception - Failed with error: Eof" - (set -x; haxelib git --always "$lib_name" "${lib_ver_splitted[0]}" ${lib_ver_splitted[1]:-} || true) - else - (set -x; haxelib git --always "$lib_name" "${lib_ver_splitted[0]}" ${lib_ver_splitted[1]:-}) - fi + (set -x; haxelib git --always "$lib_name" "${lib_ver_splitted[0]}" ${lib_ver_splitted[1]:-}) continue; fi @@ -130,11 +130,7 @@ runs: if [[ ! -f $HAXELIB_PATH/$lib_name/${lib_ver//./,}/haxelib.json ]]; then (set -x; curl -sSfL --connect-timeout 10 --retry 3 "https://lib.haxe.org/p/$lib_name/$lib_ver/download/" -o "$lib_name.zip") || exit $? - if [[ $haxelib_version == "4.0.2" ]]; then # workaround for "Uncaught exception - Failed with error: Eof" - (set -x; haxelib --debug --always install "$lib_name.zip" || true) - else - (set -x; haxelib --debug --always install "$lib_name.zip") - fi + (set -x; haxelib --debug --always install "$lib_name.zip") rm "$lib_name.zip" else echo "Library $lib_name $lib_ver is already present."