elm-lang / elm-platform

Bundle of all core development tools for Elm
BSD 3-Clause "New" or "Revised" License
762 stars 125 forks source link

Upgrading elm from 0.16 to 0.17 using Mac binary #154

Closed aldhsu closed 8 years ago

aldhsu commented 8 years ago

Conditions:

Upgrading elm from binary and running package install on a new project returns error:

Stale package is left in ~/.elm and builds a faulty elm-package.json and will prevent installing any further dependencies. I just deleted the folder and it should probably be included in the script.

jvoigtlaender commented 8 years ago

This is not going to be needed with any version beyond 0.17, because of this: https://github.com/elm-lang/elm-package/commit/645fdb76de86b068857dab4303acbe9f9813178e.

That is, when Elm 0.17.1 or Elm 0.18 comes out, the "stale" ~/.elm/package will not cause any problems, because the new version will use ~/.elm/0.17.1/package or ~/.elm/0.18/package directories.

evancz commented 8 years ago

I don't have bandwidth to backport a fix. It's just gonna suck for past versions :/

aldhsu commented 8 years ago

That's fine. Thanks for Elm! I put this issue up in case anyone else runs into it.