Skip to content

Missing From The Installed Package Index #42

Description

@zstone1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions