Commit daf549d8 authored by Eman Resu's avatar Eman Resu
Browse files

fish-lsp: prevent bot bumps on pre-releases

parent e3222f1a
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -75,7 +75,16 @@ stdenv.mkDerivation (finalAttrs: {

  doDist = false;

  passthru.updateScript = nix-update-script { };
  # fish-lsp adds tags for all its pre-release versions, which leads to
  # incorrect r-ryantm bumps. This regex allows a dash at the end followed by a
  # number (like `v1.0.9-1`). but it prevents matches with a dash followed by
  # text (like `v1.0.11-pre.10`). or, of course, no dash at all
  passthru.updateScript = nix-update-script {
    extraArgs = [
      "--version-regex"
      "v\\d+\\.\\d+\\.\\d+(?:-\\d+)?$"
    ];
  };

  meta = {
    description = "LSP implementation for the fish shell language";