elm-lang / elm-package

Command line tool to share Elm libraries
BSD 3-Clause "New" or "Revised" License
213 stars 66 forks source link

Installing a package fails and ruins other packages #293

Open mksmtn opened 6 years ago

mksmtn commented 6 years ago

Brief description I'm unable to install Http 3.0.1 package. When I'm trying to install the package, elm package asks me to remove all other packages.

Steps to reproduce

  1. elm make Main.elm
  2. elm package install krisajenkins/remotedata
  3. elm package install elm-lang/http 3.0.1

Current behavior

To install elm-lang/http I would like to add the following
dependency to elm-package.json:

    "elm-lang/http": "3.0.1 <= v < 4.0.0"

May I add that to elm-package.json for you? [Y/n] y

Some new packages are needed. Here is the upgrade plan.

  Remove:
    elm-lang/core
    elm-lang/html
    elm-lang/http
    elm-lang/virtual-dom
    krisajenkins/remotedata

Do you approve of this plan? [Y/n] y
Packages configured successfully!

Then in elm-stuff/packages/elm-lang/ I find these folders empty: core, html, http, virtual-dom.

Desired behavior When Step 3 is performed, I wish http 3.0.1 is installed, other packages aren't touched.

Other details

What I tried Delete elm-stuff, then elm package install. What I got: Packages configured successfully!, but elm-stuff/packages is empty. Install not Http, but ktonon/elm-crypto. Same thing, elm-package is asking to remove everything else.

process-bot commented 6 years ago

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.