Merge pull request #35425 from xeji/kubernetes-go-version
kubernetes: patch broken go version check
This commit is contained in:
commit
e9fdcc9662
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, lib, fetchFromGitHub, removeReferencesTo, which, go, go-bindata, makeWrapper, rsync
|
{ stdenv, lib, fetchFromGitHub, fetchpatch, removeReferencesTo, which, go, go-bindata, makeWrapper, rsync
|
||||||
, iptables, coreutils
|
, iptables, coreutils
|
||||||
, components ? [
|
, components ? [
|
||||||
"cmd/kubeadm"
|
"cmd/kubeadm"
|
||||||
@ -29,6 +29,14 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
outputs = ["out" "man" "pause"];
|
outputs = ["out" "man" "pause"];
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# patch is from https://github.com/kubernetes/kubernetes/pull/58207
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/kubernetes/kubernetes/commit/a990b04dc8a7d8408a71eee40db93621cf2b6d1b.patch";
|
||||||
|
sha256 = "0piqilc5c9frikl74hamkffawwg1mvdwfxqvjnmk6wdma43dbb7w";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace "hack/lib/golang.sh" --replace "_cgo" ""
|
substituteInPlace "hack/lib/golang.sh" --replace "_cgo" ""
|
||||||
substituteInPlace "hack/generate-docs.sh" --replace "make" "make SHELL=${stdenv.shell}"
|
substituteInPlace "hack/generate-docs.sh" --replace "make" "make SHELL=${stdenv.shell}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user