Merge pull request #176244 from aaronjheng/tgswitch
tgswitch: use buildGoModule
This commit is contained in:
commit
b71b7090be
1 changed files with 11 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
{ buildGoPackage, lib, fetchFromGitHub }:
|
||||
buildGoPackage rec {
|
||||
{ buildGoModule, lib, fetchFromGitHub }:
|
||||
buildGoModule rec {
|
||||
pname = "tgswitch";
|
||||
version = "0.5.389";
|
||||
|
||||
|
@ -10,7 +10,14 @@ buildGoPackage rec {
|
|||
sha256 = "sha256-6hErfI7LEJFgOoJR8IF9jTSBwqbQYeGiwdeJShqxVQ0=";
|
||||
};
|
||||
|
||||
goPackagePath = "github.com/warrensbox/tgswitch";
|
||||
vendorSha256 = null;
|
||||
|
||||
ldflags = [ "-s" "-w" ];
|
||||
|
||||
# There are many modifications need to be done to make tests run. For example:
|
||||
# 1. Network access
|
||||
# 2. Operation on `/var/empty` not permitted on macOS
|
||||
doCheck= false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A command line tool to switch between different versions of terragrunt";
|
||||
|
@ -19,3 +26,4 @@ buildGoPackage rec {
|
|||
maintainers = with maintainers; [ psibi ];
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue