Merge pull request #293568 from katexochen/keep-sorted/0-4-0

keep-sorted: 0.3.1 -> 0.4.0; add update script
This commit is contained in:
Paul Meyer 2024-03-06 14:51:10 +01:00 committed by GitHub
commit a9815d1945
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,17 +1,18 @@
{ lib
, buildGoModule
, fetchFromGitHub
, nix-update-script
}:
buildGoModule rec {
pname = "keep-sorted";
version = "0.3.1";
version = "0.4.0";
src = fetchFromGitHub {
owner = "google";
repo = "keep-sorted";
rev = "v${version}";
hash = "sha256-wXR471Iuo+4oZUNa2MN4N5q0n7vEpYtoTaJHvdGIDHw=";
hash = "sha256-yeps+StUA7h12Jlra24Po2zNzjIPNIQCOyWLazC8F8M=";
};
vendorHash = "sha256-tPTWWvr+/8wWUnQcI4Ycco2OEgA2mDQt15OGCk/ZjrQ=";
@ -25,6 +26,8 @@ buildGoModule rec {
"-skip=^TestGoldens"
];
passthru.updateScript = nix-update-script { };
meta = {
changelog = "https://github.com/google/keep-sorted/releases/tag/v${version}";
description = "Language-agnostic formatter that sorts lines between two markers in a larger file";