go-modules: Update files to use vendorSha256
This commit is contained in:
@@ -4,6 +4,8 @@ buildGoModule rec {
|
||||
pname = "bazelisk";
|
||||
version = "1.4.0";
|
||||
|
||||
patches = [ ./gomod.patch ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bazelbuild";
|
||||
repo = pname;
|
||||
@@ -11,7 +13,7 @@ buildGoModule rec {
|
||||
sha256 = "14zp0bi0p1rfbx1pxi5y28ndxwbqbvfx0pvy3jh1mnx5qsii1gcq";
|
||||
};
|
||||
|
||||
modSha256 = "1w8k659ifapcxbbim0nf7wd7w10bhlagc33q08izh84gcgsh0yyz";
|
||||
vendorSha256 = "10156k90ky3znb9rxhy7zasskxmlcs5cn9f3xk25ana1c66vxszr";
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X main.BazeliskVersion=${version}" ];
|
||||
|
||||
@@ -24,4 +26,4 @@ buildGoModule rec {
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ elasticdog ];
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
diff --git a/go.mod b/go.mod
|
||||
index 8eef134..54382cb 100644
|
||||
--- a/go.mod
|
||||
+++ b/go.mod
|
||||
@@ -3,6 +3,7 @@ module github.com/bazelbuild/bazelisk
|
||||
go 1.14
|
||||
|
||||
require (
|
||||
+ github.com/bazelbuild/rules_go v0.22.4
|
||||
github.com/hashicorp/go-version v1.2.0
|
||||
github.com/mitchellh/go-homedir v1.1.0
|
||||
)
|
||||
Reference in New Issue
Block a user