compiler
compiler copied to clipboard
Unhelpful "elm bump" error message
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.
- Elm: 0.19.1
Thanks for reporting this! To set expectations:
- Issues are reviewed in batches, so it can take some time to get a response.
- Ask questions in a community forum. You will get an answer quicker that way!
- If you experience something similar, open a new issue. We like duplicates.
Finally, please be patient with the core team. They are trying their best with limited resources.