Add test for repo using vendored modules

This commit is contained in:
adisbladis 2022-08-24 14:44:50 +08:00
parent 02243eca0b
commit 0f5574480e
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,28 @@
{ runCommand, buildGoApplication, fetchFromGitHub }:
let
version = "0.23.1";
in
buildGoApplication {
pname = "dstask";
inherit version;
src = fetchFromGitHub {
owner = "naggie";
repo = "dstask";
rev = "v${version}";
sha256 = "0rfz8jim0xqcwdb5n28942v9r3hbvhjrwdgzvbwc9f9psqg2s8d2";
};
modules = null;
ldflags = [
"-w"
"-s"
"-X github.com/naggie/dstask.VERSION=${version}"
"-X github.com/naggie/dstask.GIT_COMMIT=v${version}"
];
subPackages = [ "cmd/dstask.go" ];
}

2
tests/vendored-modules/script Executable file
View file

@ -0,0 +1,2 @@
#!/usr/bin/env bash
# No-op