Merge pull request #153614 from mausch/kubepug

kubepug: 1.2.2 -> 1.3.2
This commit is contained in:
Bobby Rong 2022-01-08 13:17:50 +08:00 committed by GitHub
commit 4a49c83a78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 6 deletions

View file

@ -1,23 +1,25 @@
{ lib, buildGoModule, fetchFromGitHub }: { lib, buildGo117Module, fetchFromGitHub }:
buildGoModule rec { buildGo117Module rec {
pname = "kubepug"; pname = "kubepug";
version = "1.2.2"; version = "1.3.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "rikatz"; owner = "rikatz";
repo = "kubepug"; repo = "kubepug";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-jQ/LzwxYxfCKiu+2VhjQ3YWwLEqZkYrH7+olBOMUA1A="; sha256 = "sha256-cjL718xTgtYev/lYL24vwZcB+joY3wIY4ixRCwAHQ4E=";
}; };
vendorSha256 = "sha256-P5HoU9AAGFrSrp9iymjW+r8w5L90KUOrmaXM8p+Wn44="; vendorSha256 = "0hynxj3q4aa1gx3w4ak56z6j5iplxi2hzqzsjkgz20fy34nfd41s";
ldflags = [ ldflags = [
"-s" "-w" "-X=github.com/rikatz/kubepug/version.Version=${src.rev}" "-s" "-w" "-X=github.com/rikatz/kubepug/version.Version=${src.rev}"
]; ];
subPackages = [ "cmd/kubepug.go" ]; patches = [
./skip-external-network-tests.patch
];
meta = with lib; { meta = with lib; {
description = "Checks a Kubernetes cluster for objects using deprecated API versions"; description = "Checks a Kubernetes cluster for objects using deprecated API versions";

View file

@ -0,0 +1,12 @@
diff --git a/pkg/utils/downloader_test.go b/pkg/utils/downloader_test.go
index b227760..b72dee9 100644
--- a/pkg/utils/downloader_test.go
+++ b/pkg/utils/downloader_test.go
@@ -7,6 +7,7 @@ import (
)
func TestDownloadSwaggerFile(t *testing.T) {
+ t.Skipf("Nix sandbox does not have networking")
var tmpdir string
// Github actions does not have a temporary dir :/
tmpdir = os.Getenv("RUNNER_TEMP")