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

ghcvm-pkg list gives up multiple entries #75

Closed
psibi opened this issue Oct 12, 2016 · 1 comment · Fixed by #151
Closed

ghcvm-pkg list gives up multiple entries #75

psibi opened this issue Oct 12, 2016 · 1 comment · Fixed by #151

Comments

@psibi
Copy link
Contributor

psibi commented Oct 12, 2016

@sibi::jane { ~/github/ghcvm-hackage/test/array-0.5.1.1 }-> ghcvm-pkg list
/home/sibi/.ghcvm/package.conf.d
   array-0.5.1.1
   base-4.8.2.0
   ghc-prim-0.4.0.0
   integer-0.5.1.0
   rts-0.1.0.0
/home/sibi/.ghcvm/package.conf.d
   array-0.5.1.1
   base-4.8.2.0
   ghc-prim-0.4.0.0
   integer-0.5.1.0
   rts-0.1.0.0
/home/sibi/.ghcvm/package.conf.d
   array-0.5.1.1
   base-4.8.2.0
   ghc-prim-0.4.0.0
   integer-0.5.1.0
   rts-0.1.0.0
/home/sibi/.ghcvm/package.conf.d
   array-0.5.1.1
   base-4.8.2.0
   ghc-prim-0.4.0.0
   integer-0.5.1.0
   rts-0.1.0.0

Probably this happens because of multiple installation (i.e cleaninstall.sh) ?

@rahulmutt
Copy link
Member

rahulmutt commented Oct 12, 2016

It might be due to the fact that in GHCVM, the global and the user package databases are the same (done for simplicity).

./cleaninstall.sh cleans out the .ghcvm folder so there's no chance of stuff leftover from a previous installation.

psibi added a commit to psibi/eta that referenced this issue Dec 27, 2016
Right now it fixes the `eta-pkg list` command which annoys me to a
bigger extent that I expected. The old ouput of `eta-pkg list` was
this:

``` shellsession
sibi::jane { ~ }-> eta-pkg list
/home/sibi/.eta/package.conf.d
   array-0.5.1.1
   base-4.8.2.0
   ghc-boot-th-8.0.1
   ghc-prim-0.4.0.0
   integer-0.5.1.0
   rts-0.1.0.0
/home/sibi/.eta/package.conf.d
   array-0.5.1.1
   base-4.8.2.0
   ghc-boot-th-8.0.1
   ghc-prim-0.4.0.0
   integer-0.5.1.0
   rts-0.1.0.0
/home/sibi/.eta/package.conf.d
   array-0.5.1.1
   base-4.8.2.0
   ghc-boot-th-8.0.1
   ghc-prim-0.4.0.0
   integer-0.5.1.0
   rts-0.1.0.0
/home/sibi/.eta/package.conf.d
   array-0.5.1.1
   base-4.8.2.0
   ghc-boot-th-8.0.1
   ghc-prim-0.4.0.0
   integer-0.5.1.0
   rts-0.1.0.0
```

Now, it gives up this:

``` shellsession
@sibi::jane { ~ }-> eta-pkg list
/home/sibi/.eta/package.conf.d
   array-0.5.1.1
   base-4.8.2.0
   ghc-prim-0.4.0.0
   integer-0.5.1.0
   rts-0.1.0.0
```

Note that I can fix this more cleanly - I can remove trying to query
user database and so on. But I'm doing it now as I feel in future we
may have a user package db for Eta. This also fixes typelead#75.
rahulmutt pushed a commit that referenced this issue Dec 28, 2016
Right now it fixes the `eta-pkg list` command which annoys me to a
bigger extent that I expected. The old ouput of `eta-pkg list` was
this:

``` shellsession
sibi::jane { ~ }-> eta-pkg list
/home/sibi/.eta/package.conf.d
   array-0.5.1.1
   base-4.8.2.0
   ghc-boot-th-8.0.1
   ghc-prim-0.4.0.0
   integer-0.5.1.0
   rts-0.1.0.0
/home/sibi/.eta/package.conf.d
   array-0.5.1.1
   base-4.8.2.0
   ghc-boot-th-8.0.1
   ghc-prim-0.4.0.0
   integer-0.5.1.0
   rts-0.1.0.0
/home/sibi/.eta/package.conf.d
   array-0.5.1.1
   base-4.8.2.0
   ghc-boot-th-8.0.1
   ghc-prim-0.4.0.0
   integer-0.5.1.0
   rts-0.1.0.0
/home/sibi/.eta/package.conf.d
   array-0.5.1.1
   base-4.8.2.0
   ghc-boot-th-8.0.1
   ghc-prim-0.4.0.0
   integer-0.5.1.0
   rts-0.1.0.0
```

Now, it gives up this:

``` shellsession
@sibi::jane { ~ }-> eta-pkg list
/home/sibi/.eta/package.conf.d
   array-0.5.1.1
   base-4.8.2.0
   ghc-prim-0.4.0.0
   integer-0.5.1.0
   rts-0.1.0.0
```

Note that I can fix this more cleanly - I can remove trying to query
user database and so on. But I'm doing it now as I feel in future we
may have a user package db for Eta. This also fixes #75.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants