Skip to content

Commit

Permalink
Fix patching in CI where .elm-land doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Erudition committed Nov 16, 2023
1 parent 712ab7c commit b787a83
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions elm-patches/patch-elm-libraries.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# TODO only run if pathces are not already applied

# TODO how to get elm to re-compute only the selected packages without blowing them all away
rm -rf ~/.elm/0.19.1/packages/ && \
elm make --output=/dev/null elm-patches/dummyproject/Dummy.elm && \
make --directory ./elm-patches && \
rm -rf elm-stuff

rm -rf ~/.elm/0.19.1/packages/ # TODO how to get elm to re-compute only the selected packages without blowing them all away
cd elm-patches/dummyproject/ # CI env is empty so we use minimal elm.json for dummy project
elm make --output=/dev/null Dummy.elm # build dummy project and output to nowhere, so libraries are re-downloaded
cd ../.. # go back to project dir
make --directory ./elm-patches # apply patches
rm -rf elm-stuff # get rid of cached elm builds so project will create fresh ones with patches

0 comments on commit b787a83

Please sign in to comment.