gradle-eta icon indicating copy to clipboard operation
gradle-eta copied to clipboard

Missing From The Installed Package Index

Open zstone1 opened this issue 6 years ago • 2 comments

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.

zstone1 avatar Jan 20 '19 16:01 zstone1

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

rahulmutt avatar Jan 21 '19 12:01 rahulmutt

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!

zstone1 avatar Jan 22 '19 14:01 zstone1