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

Installing a package fails and ruins other packages #293

@mksmtn

Description

@mksmtn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions