From 042a17e5fe687360c88bc4eda6b431eaf9903432 Mon Sep 17 00:00:00 2001 From: Jess Bodzo Date: Fri, 5 Apr 2024 11:19:45 -0400 Subject: [PATCH 1/3] auth0-cli: 1.1.2 -> 1.4.0 https://github.com/auth0/auth0-cli/releases/tag/v1.4.0 --- pkgs/tools/admin/auth0-cli/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/admin/auth0-cli/default.nix b/pkgs/tools/admin/auth0-cli/default.nix index 44de0a5058b4..31ed1298db26 100644 --- a/pkgs/tools/admin/auth0-cli/default.nix +++ b/pkgs/tools/admin/auth0-cli/default.nix @@ -5,16 +5,16 @@ buildGoModule rec { pname = "auth0-cli"; - version = "1.1.2"; + version = "1.4.0"; src = fetchFromGitHub { owner = "auth0"; repo = "auth0-cli"; rev = "v${version}"; - hash = "sha256-EJH+Vn7wvrQ2umjmSXHjbgf2uf/kRbDoo0usTMqDFo4="; + hash = "sha256-j7HT57/4rrrVkx9Zz+XuWD6UL0spdej+U5gWtFo1FSI="; }; - vendorHash = "sha256-T8y7MPFebDU6skfz4Rqo0ElRRaldtfexOl99D7h+orU="; + vendorHash = "sha256-bWAneCRsQbPRxEM/3jr1/Lov6NV67MRycOgrlj3bKF8="; ldflags = [ "-s" "-w" From 3744104cb669ed237a2d8926899f5ad94a04d1b0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 5 Apr 2024 23:54:52 +0200 Subject: [PATCH 2/3] auth0-cli: refactor --- pkgs/tools/admin/auth0-cli/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/admin/auth0-cli/default.nix b/pkgs/tools/admin/auth0-cli/default.nix index 31ed1298db26..739e5f8ca890 100644 --- a/pkgs/tools/admin/auth0-cli/default.nix +++ b/pkgs/tools/admin/auth0-cli/default.nix @@ -10,16 +10,17 @@ buildGoModule rec { src = fetchFromGitHub { owner = "auth0"; repo = "auth0-cli"; - rev = "v${version}"; + rev = "refs/tags/v${version}"; hash = "sha256-j7HT57/4rrrVkx9Zz+XuWD6UL0spdej+U5gWtFo1FSI="; }; vendorHash = "sha256-bWAneCRsQbPRxEM/3jr1/Lov6NV67MRycOgrlj3bKF8="; ldflags = [ - "-s" "-w" - "-X github.com/auth0/auth0-cli/internal/buildinfo.Version=v${version}" - "-X github.com/auth0/auth0-cli/internal/buildinfo.Revision=0000000" + "-s" + "-w" + "-X=github.com/auth0/auth0-cli/internal/buildinfo.Version=v${version}" + "-X=github.com/auth0/auth0-cli/internal/buildinfo.Revision=0000000" ]; preCheck = '' From 9857fcdec98ab3823c214d38315378611b010b70 Mon Sep 17 00:00:00 2001 From: Jess Bodzo Date: Wed, 10 Apr 2024 10:38:50 -0400 Subject: [PATCH 3/3] auth0-cli: disable failing tests --- pkgs/tools/admin/auth0-cli/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/tools/admin/auth0-cli/default.nix b/pkgs/tools/admin/auth0-cli/default.nix index 739e5f8ca890..1328c478a7bb 100644 --- a/pkgs/tools/admin/auth0-cli/default.nix +++ b/pkgs/tools/admin/auth0-cli/default.nix @@ -28,6 +28,9 @@ buildGoModule rec { # This is because subPackages above limits what is built to just what we # want but also limits the tests unset subPackages + # Test requires network access + substituteInPlace internal/cli/universal_login_customize_test.go \ + --replace-fail "TestFetchUniversalLoginBrandingData" "SkipFetchUniversalLoginBrandingData" ''; subPackages = [ "cmd/auth0" ];