Open rtfeldman opened 9 years ago
Ran into this myself. That was quite confusing.
Still true in 0.17.1?
I have this issue right now. Currently, elm-package.json
contains
"dependencies": {
"elm-lang/core": "4.0.5 <= v < 5.0.0",
"elm-lang/html": "1.1.0 <= v < 2.0.0",
"elm-lang/navigation": "1.0.0 <= v < 2.0.0",
"evancz/elm-http": "3.0.1 <= v < 4.0.0",
"evancz/url-parser": "1.0.0 <= v < 2.0.0"
},
and when modify it to have
elm-lang/navigation: "2.0.0 <= v < 3.0.0"
then type elm-package install
, it's output is:
Some new packages are needed. Here is the upgrade plan.
Remove:
elm-lang/core
elm-lang/dom
elm-lang/html
elm-lang/navigation
elm-lang/virtual-dom
evancz/elm-http
evancz/url-parser
Versions:
elm 0.17.1
elm-package 0.17.1
Still happens with 0.18.0
putting this in package.json
"elm-community/webgl": "3.0.3 <= v < 4.0.0"
makes elm-package install
silently fail and leaves an empty 'elm-stuff' folder
(correct range at this time is "elm-community/webgl": "1.0.1 <= v < 2.0.0"
)
To reproduce, start a new project with these dependencies:
If you run
elm package install
, you get a fairly standard output:Now change the
core
version to a version that does not exist yet:Now it tries to remove everything:
...however, in practice it does not actually remove them:
...but it does empty them out!
Expected behavior would be some sort of error explaining "there's no such version as 9.0.0" and aborting.