Skip to content
This repository has been archived by the owner on Aug 23, 2018. It is now read-only.

Installing a package fails and ruins other packages #293

Open
mksmtn opened this issue Feb 17, 2018 · 1 comment
Open

Installing a package fails and ruins other packages #293

mksmtn opened this issue Feb 17, 2018 · 1 comment

Comments

@mksmtn
Copy link

mksmtn commented Feb 17, 2018

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

  • Elm Platform 0.18.0;
  • Elementary OS;
  • After I had faced this issue, I uninstalled elm from npm, and installed it again with yarn. Nothing changed;
  • The content of elm-package.json:
...
"dependencies": {
        "elm-lang/core": "5.1.1 <= v < 6.0.0",
        "elm-lang/html": "2.0.0 <= v < 3.0.0",
        "elm-lang/http": "3.0.1 <= v < 4.0.0",
        "krisajenkins/remotedata": "4.3.3 <= v < 5.0.0"
    },
    "elm-version": "0.18.0 <= v < 0.19.0"

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
Copy link

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.

@mksmtn mksmtn changed the title Installing Http 3.0.1 fails and ruins other packages Installing a package fails and ruins other packages Feb 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants