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

Packages added to elm-package.json even when they are not successfully installed #269

Open
kevgathuku opened this issue May 4, 2017 · 2 comments

Comments

@kevgathuku
Copy link

kevgathuku commented May 4, 2017

I was trying to install the elm-community/elm-history -y to an Elm project I'm working on.
I ran this command:
elm-package install elm-community/elm-history -y
and got this error message:

Error: I cannot find a set of packages that works with your constraints.

--> There are no versions of elm-community/elm-history that work with Elm
    0.18.0. Maybe the maintainer has not updated it yet.

I found its GitHub repo and saw that the package was deprecated.
However, the package was still added to the elm-package.json file even though it was not successfully installed.

This makes subsequent runs of elm-package install fail because I now have an invalid package in the elm-package.json file.

Expected Behaviour:
The invalid package name should not be added to the elm-package.json file

This is on elm-package 0.18.0

@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.

@kevgathuku kevgathuku changed the title Packages added to elm-package.json even when they are not available Packages added to elm-package.json even when they are not successfully installed May 4, 2017
@ceddlyburge
Copy link

I experienced this also.

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

3 participants