Jakub Sokołowski 98280dc45b
make go-maven-resolver fail when any resolution fails
Before errors like this:
```
finder.go:91: error: 'no pom data' for: <Dep ID=com.afollestad.material-dialogs:commons:0.9.6.0 O=false S= >
```
Would be printed to `stderr` but exit code would not be non-zero.

Now the whole `make nix-update-gradle` target should fail if any
dependency resolution fails.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-06-18 12:10:08 +02:00

21 lines
472 B
Nix

{ lib, buildGoPackage, fetchFromGitHub }:
let
inherit (lib) strings;
in buildGoPackage rec {
pname = "go-maven-resolver";
version = strings.substring 0 7 rev;
owner = "status-im";
repo = pname;
rev = "v1.0.0";
sha256 = "1768mwk1kawrqc72s3yq7k3xbh2z8kn7sfxpxwxdr9cghzwcqcld";
goPackagePath = "github.com/${owner}/${repo}";
goDeps = ./deps.nix;
src = fetchFromGitHub {
name = "${repo}-${version}-source";
inherit owner repo rev sha256;
};
}