elm / compiler

Compiler for Elm, a functional language for reliable webapps.
https://elm-lang.org/
BSD 3-Clause "New" or "Revised" License
7.51k stars 656 forks source link

Unhelpful "elm bump" error message #2205

Open jfmengels opened 3 years ago

jfmengels commented 3 years ago

Quick Summary: elm bump says it can't find a version if a newer one has been published already

I tried bumping a package whose latest version was 2.0.1, but locally I hadn't pulled the latest changes and the version in my elm.json was 2.0.0. The change in this case would have been a patch release.

elm bump correctly reported an error, but the message was a bit unhelpful:

-- CANNOT BUMP -------------------------------------------------------- elm.json

Your elm.json says I should bump relative to version 2.0.0, but I cannot find
that version on <https://package.elm-lang.org>. That means there is no API for
me to diff against and figure out if these are MAJOR, MINOR, or PATCH changes.

Try bumping again after changing the "version" in elm.json to one of these:

1.0.2
2.0.1

Version 2.0.0 does exist, and I doubt it could not find it. The issue here is I think that it tried to fetch the latest tag(s) (the major ones?) but none of them matched what was in my elm.json.

I would expect the compiler to say something like that the version of my elm.json was likely not the latest one and that I had an outdated copy of the project.

github-actions[bot] commented 3 years ago

Thanks for reporting this! To set expectations:

Finally, please be patient with the core team. They are trying their best with limited resources.