Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: fluxcd 2.8.5 -> 2.8.6 https://github.com/fluxcd/flux2/releases attrpath: fluxcd Checking auto update branch... [version] [version] generic version rewriter does not support multiple hashes [rustCrateVersion] [rustCrateVersion] No cargoHash found [golangModuleVersion] [golangModuleVersion] skipping because derivation has updateScript [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/f2qm52hhs7q3qh36gvmb1wq4sw559wqq-packages.json.drv building '/nix/store/f2qm52hhs7q3qh36gvmb1wq4sw559wqq-packages.json.drv'... Going to be running update for following packages: - fluxcd-2.8.5 Press Enter key to continue... Running update for: Enqueuing group of 1 packages - fluxcd-2.8.5: UPDATING ... - fluxcd-2.8.5: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/by-name/fl/fluxcd/package.nix b/pkgs/by-name/fl/fluxcd/package.nix index 1bcb6d082fd1..39cd3c54a827 100644 --- a/pkgs/by-name/fl/fluxcd/package.nix +++ b/pkgs/by-name/fl/fluxcd/package.nix @@ -9,10 +9,10 @@ }: let - version = "2.8.5"; - srcHash = "sha256-2Q6l+egcRntGjieXpXz/frGGw4GMhGXxQAUOAZfxBE4="; - vendorHash = "sha256-D92vOyTvlpOou/1WHS6xpb4e8igZMQhm4DP7SVSLKPI="; - manifestsHash = "sha256-X0Cf8UZufqUWKLxYVjblYNCz5IU/s+mI+h6TpTeks5k="; + version = "2.8.6"; + srcHash = "sha256-pKP4g2pTMYtx/B/Y3ow7tvDdhCSuwbszzeLVXB0W7Bo="; + vendorHash = "sha256-VBafft9/AuXaHWvZymy7P9gaSuO8D6IZHfK68Ixp3mI="; + manifestsHash = "sha256-h/HR/rJwPWXiuoj9T+LajdsdT4Jo8/EuN+O1I7e9sjI="; manifests = fetchzip { url = "https://github.com/fluxcd/flux2/releases/download/v${version}/manifests.tar.gz"; No auto update branch exists Old version 2.8.5" not present in master derivation file with contents: { buildGoModule, fetchFromGitHub, fetchzip, installShellFiles, lib, stdenv, writableTmpDirAsHomeHook, }: let version = "2.8.6"; srcHash = "sha256-pKP4g2pTMYtx/B/Y3ow7tvDdhCSuwbszzeLVXB0W7Bo="; vendorHash = "sha256-VBafft9/AuXaHWvZymy7P9gaSuO8D6IZHfK68Ixp3mI="; manifestsHash = "sha256-h/HR/rJwPWXiuoj9T+LajdsdT4Jo8/EuN+O1I7e9sjI="; manifests = fetchzip { url = "https://github.com/fluxcd/flux2/releases/download/v${version}/manifests.tar.gz"; hash = manifestsHash; stripRoot = false; }; in buildGoModule rec { pname = "fluxcd"; inherit vendorHash version; src = fetchFromGitHub { owner = "fluxcd"; repo = "flux2"; rev = "v${version}"; hash = srcHash; }; postUnpack = '' cp -r ${manifests} source/cmd/flux/manifests # disable tests that require network access rm source/cmd/flux/create_secret_git_test.go ''; ldflags = [ "-s" "-w" "-X main.VERSION=${version}" ]; subPackages = [ "cmd/flux" ]; nativeBuildInputs = [ installShellFiles ]; # Required to workaround test error: # panic: mkdir /homeless-shelter: permission denied nativeCheckInputs = [ writableTmpDirAsHomeHook ]; doInstallCheck = true; installCheckPhase = '' $out/bin/flux --version | grep ${version} > /dev/null ''; postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' for shell in bash fish zsh; do installShellCompletion --cmd flux \ --$shell <($out/bin/flux completion $shell) done ''; passthru.updateScript = ./update.sh; meta = { changelog = "https://github.com/fluxcd/flux2/releases/tag/v${version}"; description = "Open and extensible continuous delivery solution for Kubernetes"; downloadPage = "https://github.com/fluxcd/flux2/"; longDescription = '' Flux is a tool for keeping Kubernetes clusters in sync with sources of configuration (like Git repositories), and automating updates to configuration when there is new code to deploy. ''; homepage = "https://fluxcd.io"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ jlesquembre ryan4yin SchahinRohani stealthybox superherointj ]; mainProgram = "flux"; }; }