Skip to content

Inconsistencies between lock file and nix resolved packages #1

@tmcl

Description

@tmcl

If a package with the same name and version but different hashes is uploaded to two different maven repos, gradle dependencies and nix buildMavenRepo might have different ideas about which repo to obtain the file from, and therefore crash.

Possible solutions:

  1. Change the way the lock file is produced, to include a reference to the repo from which it was obtained. (This is probably too hard and flaky.)
  2. If buildMavenRepo finds a file with the incorrect sum, it shouldn't give up. Instead, it should keep looking at the other repos. (This is probably much easier. But the whole thing feels completely ad hoc. Why shouldn't we know where the package comes from? Is that just how maven works?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions