moves all the content of src/installer.js into src/setup-beam.js
moves all the content of test/problem-matchers.test.js into test/setup-beam.test.js
centralises the mirror-iterating function in a single place, with a single interface (doWithMirrors)
while doing this we also ended up fixing an issue with not using mirrors for the Erlang/OTP build 👍
makes tool-cacheing -related behaviour callback -based (as explained in an extensive comment in the code)
improves debug logging
has Gleam and Rebar3 use tool-cache as per the issue it closes
is probably best reviewed commit by commit (given its size)
basically leaves the tests untouched in an attempt to increase confidence on the changes
~ ⚠️ is not yet to be merged~
~ I want to get #217 approved+merged so as to update this one (I'm sure there'll be merge conflicts)~
Description
This pull request:
.ps1
and.sh
filessrc/installer.js
intosrc/setup-beam.js
test/problem-matchers.test.js
intotest/setup-beam.test.js
doWithMirrors
)tool-cache
ing -related behaviour callback -based (as explained in an extensive comment in the code)tool-cache
as per the issue it closesCloses #204.
Callback -based
tool-cache
ing -related behaviourAs an example, we show how Gleam is now configured for tool caching, on Linux (simplified here for illustration purposes):