diff options
author | Raghav Sood <r@raghavsood.com> | 2024-05-20 23:01:20 +0800 |
---|---|---|
committer | Raghav Sood <r@raghavsood.com> | 2024-05-20 23:01:20 +0800 |
commit | 54a85a69a597ab75ff30c9817a499673e5ea07a1 (patch) | |
tree | 0281099ce2cb198d08e4eb646e17f156ef0cb1f4 /pkgs/development/web | |
parent | df4c4e9183aef86b7006f850efe9b75f0d2c6b61 (diff) |
flyctl: add updateScript
Diffstat (limited to 'pkgs/development/web')
-rw-r--r-- | pkgs/development/web/flyctl/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/web/flyctl/default.nix b/pkgs/development/web/flyctl/default.nix index 6ab6ad9057d2c..12483d4ef5b38 100644 --- a/pkgs/development/web/flyctl/default.nix +++ b/pkgs/development/web/flyctl/default.nix @@ -1,4 +1,4 @@ -{ lib, buildGo122Module, fetchFromGitHub, testers, flyctl, installShellFiles }: +{ lib, buildGo122Module, fetchFromGitHub, testers, flyctl, installShellFiles, gitUpdater }: buildGo122Module rec { pname = "flyctl"; @@ -58,6 +58,14 @@ buildGo122Module rec { ln -s $out/bin/flyctl $out/bin/fly ''; + # Upstream tags every PR merged with release tags like + # v2024.5.20-pr3545.4. We ignore all revisions containing a '-' + # to skip these releases. + passthru.updateScript = gitUpdater { + rev-prefix = "v"; + ignoredVersions = "-"; + }; + passthru.tests.version = testers.testVersion { package = flyctl; command = "HOME=$(mktemp -d) flyctl version"; |