Skip to content

rebar-only git dependencies are detected as mix projects #12

@adamcstephens

Description

@adamcstephens

For example, adding this dep

{:mnesia_eleveldb,
 git: "https://github.com/klarna/mnesia_eleveldb",
 ref: "af6d0556a78aec2918b3471f0c85121402a1f5b1"}

Results in

mnesia_eleveldb =
  let
    version = "af6d0556a78aec2918b3471f0c85121402a1f5b1";
    drv = buildMix {
      inherit version;
      name = "mnesia_eleveldb";
      appConfigPath = ./config;

      src = pkgs.fetchFromGitHub {
        owner = "klarna";
        repo = "mnesia_eleveldb";
        rev = "af6d0556a78aec2918b3471f0c85121402a1f5b1";
        hash = "sha256-+ZZ5Uyoe/HK0wL0ev1vn9Tuiaps4X88izETtuRszKYE=";
      };

      beamDeps = [
        proper
        eleveldb
      ];
    };
  in
  drv;

Which will not build, as the repo https://github.com/klarna/mnesia_eleveldb has no mix project file.

It looks like mix doesn't put the build manager in the lock file even if specified with manager: :rebar3, but could deps_nix maybe inspect the out path after fetching to verify?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions