all repos — searchix @ 84703a88660f03e9eb6767b596a2841f826dcb35

Search engine for NixOS, nix-darwin, home-manager and NUR users

test: fix version flake check

Alan Pearce
commit

84703a88660f03e9eb6767b596a2841f826dcb35

parent

ff3d5a36af52cf8bb06bf9c0e3a519536e2fa2f2

M flake.nixflake.nix
@@ -91,6 +91,7 @@ }
); buildVersion = pkgs.testers.testVersion { package = packages.default; + command = "searchix-web version"; }; }; }
M internal/components/page.gointernal/components/page.go
@@ -96,7 +96,7 @@ g.Group([]g.Node{
g.Text("Searchix "), A( Href( - "https://codeberg.org/alanpearce/searchix/src/tag/"+config.Version+"/CHANGELOG.md", + "https://codeberg.org/alanpearce/searchix/src/tag/v"+config.Version+"/CHANGELOG.md", ), TitleAttr("View changelog"), g.Text(config.Version),
M internal/fetcher/http/http.gointernal/fetcher/http/http.go
@@ -81,7 +81,7 @@ fmsg.Withf("could not create HTTP request for %s", url),
) } - req.Header.Set("User-Agent", fmt.Sprintf("Searchix %s", config.Version)) + req.Header.Set("User-Agent", fmt.Sprintf("Searchix v%s", config.Version)) if ifModifiedSince != "" { req.Header.Set("If-Modified-Since", ifModifiedSince)
M internal/server/headers.gointernal/server/headers.go
@@ -12,7 +12,7 @@ for h, v := range config.Web.Headers {
w.Header().Add(h, v) } w.Header().Add("Content-Security-Policy", config.Web.ContentSecurityPolicy.String()) - w.Header().Add("Server", "alin.ovh/searchix/"+cfg.Version) + w.Header().Add("Server", "alin.ovh/searchix/v"+cfg.Version) next.ServeHTTP(w, r) })
M nix/package.nixnix/package.nix
@@ -44,7 +44,7 @@ ldflags = [
"-s" "-w" "-X" - "alin.ovh/searchix/internal/config.Version=v${version}" + "alin.ovh/searchix/internal/config.Version=${version}" ]; postInstall = ''