Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A command to add remote/local packages #808

Closed
wclr opened this issue Aug 3, 2021 · 2 comments
Closed

A command to add remote/local packages #808

wclr opened this issue Aug 3, 2021 · 2 comments

Comments

@wclr
Copy link
Contributor

wclr commented Aug 3, 2021

What do you think about the command for adding remote repo packages like:

spago add https://github.com/Unisay/purescript-facebook

spago could read remote bower.json (or spago.dhall if exsists) for the dependencies list and the name.

and would automatically do what described here: https://github.com/purescript/spago#add-a-package-to-the-package-set

let upstream = -- <package set URL here>
in  upstream
  with facebook =
    { dependencies =
        [ "console"
        , "aff"
        , "prelude"
        , "foreign"
        , "foreign-generic"
        , "errors"
        , "effect"
        ]
    , repo =
        "https://github.com/Unisay/purescript-facebook.git"
    , version =
        "v0.3.0"  -- branch, tag, or commit hash
    }

This could also work for adding local packages like:

spago add ./my-package --name override-pkg-name

if locates spago.dhall would add to packages.dhall:

with  override-pkg-name =  ./my-package/spago.dhall as Location
@f-f
Copy link
Member

f-f commented Aug 3, 2021

Is this a duplicate of #404?

@wclr
Copy link
Contributor Author

wclr commented Aug 3, 2021

I believe the kind of.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants