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.
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 myelm.json
was2.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: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 myelm.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.