Skip to content

Commit

Permalink
ratchet: 0.10.0 -> 0.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
emaryn committed Feb 23, 2025
1 parent e26cdb6 commit 9a91f6b
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions pkgs/by-name/ra/ratchet/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
fetchFromGitHub,
callPackage,
}:

buildGoModule rec {
pname = "ratchet";
version = "0.10.0";
version = "0.10.2";

# ratchet uses the git sha-1 in the version string, e.g.
#
Expand All @@ -19,12 +20,13 @@ buildGoModule rec {
src = fetchFromGitHub {
owner = "sethvargo";
repo = "ratchet";
rev = "ebb7f24e0cbc288ab913b635480412934a2a5371";
hash = "sha256-Wt1/ahKQ8DOquXU5u6p+an9FJ5kYRl7F2EXOv/2rHlA=";
rev = "ee93c849418d0b9316703bb349055a4078ad205e";
hash = "sha256-pVpZB8WWGgFbu0iK6gM2lEaXN4IqDJ1lMtVnUfcE4MQ=";
};

proxyVendor = true;
vendorHash = "sha256-J7LijbhpKDIfTcQMgk2x5FVaYG7Kgkba/1aSTmgs5yw=";

vendorHash = "sha256-KKHlegmvpmmUZGoiEawgSUwOPQEfTjfzTYvere1YAv4=";

subPackages = [ "." ];

Expand All @@ -41,28 +43,28 @@ buildGoModule rec {
];

doInstallCheck = true;

installCheckPhase = ''
$out/bin/ratchet --version 2>&1 | grep ${version};
'';

installPhase = ''
runHook preInstall
mkdir -p $out/bin
install -Dm755 "$GOPATH/bin/ratchet" -T $out/bin/ratchet
runHook postInstall
'';

passthru.tests = {
execution = callPackage ./tests.nix { };
};
passthru.tests.execution = callPackage ./tests.nix { };

meta = with lib; {
meta = {
description = "Tool for securing CI/CD workflows with version pinning";
mainProgram = "ratchet";
downloadPage = "https://github.com/sethvargo/ratchet";
homepage = "https://github.com/sethvargo/ratchet";
license = licenses.asl20;
maintainers = with maintainers; [
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
cameronraysmith
ryanccn
];
Expand Down

0 comments on commit 9a91f6b

Please sign in to comment.