test: fix version flake check
5 files changed, 5 insertions(+), 4 deletions(-)
M internal/components/page.go → internal/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.go → internal/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.go → internal/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.nix → nix/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 = ''