Closed rlopzc closed 1 year ago
Hi, @rlopzc. It's probably the version coercion mechanism that has an issue. Could you, in the meantime, with version-type: strict
, as an input to the action?
Would you add your inputs to our CI files and pull request so we can go from there, maybe? I'm not sure when/if I'll have time to deal with this soonish, but it seems like an important issue.
Yeah, so in the case of '25.3.2.1', it seems that semver.validRange("25.3.2.1")
evaluates to null
, which means we do semver.coerce("25.3.2.1").version
, which results in '25.3.2', .
I could probably make an exception for OTP alone, since its version scheme is not SemVer (or "somewhat closely" compliant). I've looked at a few of the latest tags for Gleam, rebar3, Elixir and Erlang/OTP, and only the last one seems not "somewhat compliant".
Hello @paulo-ferraz-oliveira , thanks for the help! Indeed it was fixed by using version-type: strict
. I'll close this as now we are installing the specific versions we want :smile:
I think I'll add a check for this, actually. If a version isn't coercible as semver, we'll need to force 'strict'
.
Edit: and then I'll pull request and check what other maintainers think of this approach.
When using this:
The action outputs:
Not sure why the OTP version gets changed to
25.3.2.2
when it's25.3.2.1
.