Merge pull request #267411 from claudiiii/feat/k9s-update

k9s: 0.28.0 -> 0.28.2
This commit is contained in:
Fabián Heredia Montiel 2023-11-14 14:17:24 -06:00 committed by GitHub
commit 37fa3e8d78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,14 +1,14 @@
{ stdenv, lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, k9s }: { stdenv, lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, nix-update-script, k9s }:
buildGoModule rec { buildGoModule rec {
pname = "k9s"; pname = "k9s";
version = "0.28.0"; version = "0.28.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "derailed"; owner = "derailed";
repo = "k9s"; repo = "k9s";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-qFZLl37Y9g9LMRnWacwz46cgjVreLg2WyWZrSj3T4ok="; sha256 = "sha256-3ij77aBNufSEP3wf8wtQ/aBehE45fwrgofCmyXxuyPM=";
}; };
ldflags = [ ldflags = [
@ -20,7 +20,7 @@ buildGoModule rec {
tags = [ "netgo" ]; tags = [ "netgo" ];
vendorHash = "sha256-TfU1IzTdrWQpK/YjQQImRGeo7byaXUI182xSed+21PU="; vendorHash = "sha256-kgi5ZfbjkSiJ/uZkfpeMhonSt/4sO3RKARpoww1FsTo=";
# TODO investigate why some config tests are failing # TODO investigate why some config tests are failing
doCheck = !(stdenv.isDarwin && stdenv.isAarch64); doCheck = !(stdenv.isDarwin && stdenv.isAarch64);
@ -28,10 +28,13 @@ buildGoModule rec {
preCheck = "export HOME=$(mktemp -d)"; preCheck = "export HOME=$(mktemp -d)";
# For arch != x86 # For arch != x86
# {"level":"fatal","error":"could not create any of the following paths: /homeless-shelter/.config, /etc/xdg","time":"2022-06-28T15:52:36Z","message":"Unable to create configuration directory for k9s"} # {"level":"fatal","error":"could not create any of the following paths: /homeless-shelter/.config, /etc/xdg","time":"2022-06-28T15:52:36Z","message":"Unable to create configuration directory for k9s"}
passthru.tests.version = testers.testVersion { passthru = {
package = k9s; tests.version = testers.testVersion {
command = "HOME=$(mktemp -d) k9s version -s"; package = k9s;
inherit version; command = "HOME=$(mktemp -d) k9s version -s";
inherit version;
};
updateScript = nix-update-script { };
}; };
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];