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

Missing From The Installed Package Index #42

Open
zstone1 opened this issue Jan 20, 2019 · 2 comments
Open

Missing From The Installed Package Index #42

zstone1 opened this issue Jan 20, 2019 · 2 comments

Comments

@zstone1
Copy link

zstone1 commented Jan 20, 2019

I'm trying to build a project that recursively depends on a happy generated parser, and the eta-gradle plugin cannot build it. To get a repro:

1. git clone https://github.com/typelead/eta-init
2. cd eta-init
3. ./gradlew run

So far so good.
The problem occurs when we add a dependency. Update the build.gradle file to have

plugins {
    id 'com.typelead.eta' version '0.8.0'
    id 'application'
}

eta {
    version = '0.8.6b3'
    etlasVersion = '1.5.0.0'
}

dependencies {
  compile eta('base:4.11.1.0', 'haskell-src-meta')
}

Then run ./graldew run again and you'll get an error

etlas: The following packages in the elaborated install plan are missing from
the installed package index:
[UnitId
"happy-1.19.9-fdfb0185a1ceb9bb00d148abaecb51932cb9101ae15fe8612f4955a82c3adacf"]

Notably, a folder with that name appears in my .etlas/store/eta-0.8.6.3, but it does not get mentioned in .etlas/store/eta-0.8.6.3/package.db. Seems suspicious. For what it's worth, same thing happens with dependencies on alex.

This issue is preventing me from using gradle, which is not great.
Workaround for now is to have a make file that does all the etlas, javac, proguard stuff myself.

@rahulmutt
Copy link
Member

@zstone1 Thanks - was able to reproduce this. It seems to be an issue with the etlas deps command implementation. We'll add this to our queue.

Do you have a preferred timeline by which you'd like this fixed? I can prioritize accordingly.

@zstone1
Copy link
Author

zstone1 commented Jan 22, 2019

Excellent, glad you can repro. I don't have any critical timeline issues here. I have a workaround make file which will keep me unblocked for now. Thanks for the quick response!

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

No branches or pull requests

2 participants