diff options
author | 2024-05-26 19:45:10 +0300 | |
---|---|---|
committer | 2024-05-26 19:59:05 +0300 | |
commit | c6264620c7f0904240299db39ed8f002a130b468 (patch) | |
tree | 3e115053a763a3a0f170603f8debefe344b7bac8 | |
parent | disable gitlab ci (diff) | |
download | soko-c6264620c7f0904240299db39ed8f002a130b468.tar.gz soko-c6264620c7f0904240299db39ed8f002a130b468.tar.bz2 soko-c6264620c7f0904240299db39ed8f002a130b468.zip |
go: update templ
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
-rw-r--r-- | Dockerfile | 2 | ||||
-rw-r--r-- | Dockerfile.updater | 2 | ||||
-rw-r--r-- | go.mod | 2 | ||||
-rw-r--r-- | go.sum | 4 | ||||
-rw-r--r-- | pkg/app/handler/packages/search.templ | 2 |
5 files changed, 6 insertions, 6 deletions
@@ -1,5 +1,5 @@ FROM golang:1.22.2 AS builder -RUN go install github.com/a-h/templ/cmd/templ@v0.2.697 +RUN go install github.com/a-h/templ/cmd/templ@v0.2.707 WORKDIR /go/src/soko COPY . /go/src/soko RUN templ generate && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o bin . diff --git a/Dockerfile.updater b/Dockerfile.updater index f568233..4816376 100644 --- a/Dockerfile.updater +++ b/Dockerfile.updater @@ -1,5 +1,5 @@ FROM golang:1.22.2 AS builder -RUN go install github.com/a-h/templ/cmd/templ@v0.2.697 +RUN go install github.com/a-h/templ/cmd/templ@v0.2.707 WORKDIR /go/src/soko COPY . /go/src/soko RUN templ generate && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o bin . @@ -4,7 +4,7 @@ go 1.22 require ( github.com/99designs/gqlgen v0.17.45 - github.com/a-h/templ v0.2.697 + github.com/a-h/templ v0.2.707 github.com/go-git/go-git/v5 v5.12.0 github.com/go-pg/pg v8.0.7+incompatible github.com/go-pg/pg/v10 v10.12.0 @@ -7,8 +7,8 @@ github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migc github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM= github.com/ProtonMail/go-crypto v1.0.0 h1:LRuvITjQWX+WIfr930YHG2HNfjR1uOfyf5vE0kC2U78= github.com/ProtonMail/go-crypto v1.0.0/go.mod h1:EjAoLdwvbIOoOQr3ihjnSoLZRtE8azugULFRteWMNc0= -github.com/a-h/templ v0.2.697 h1:OILxtWvD0NRJaoCOiZCopRDPW8paroKlGsrAiHLykNE= -github.com/a-h/templ v0.2.697/go.mod h1:5cqsugkq9IerRNucNsI4DEamdHPsoGMQy99DzydLhM8= +github.com/a-h/templ v0.2.707 h1:T1Gkd2ugbRglZ9rYw/VBchWOSZVKmetDbBkm4YubM7U= +github.com/a-h/templ v0.2.707/go.mod h1:5cqsugkq9IerRNucNsI4DEamdHPsoGMQy99DzydLhM8= github.com/agnivade/levenshtein v1.1.1 h1:QY8M92nrzkmr798gCo3kmMyqXFzdQVpxLlGPRBij0P8= github.com/agnivade/levenshtein v1.1.1/go.mod h1:veldBMzWxcCG2ZvUTKD2kJNRdCk5hVbJomOvKkmgYbo= github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883 h1:bvNMNQO63//z+xNgfBlViaCIJKLlCJ6/fmUseuG0wVQ= diff --git a/pkg/app/handler/packages/search.templ b/pkg/app/handler/packages/search.templ index 24b740d..19033dd 100644 --- a/pkg/app/handler/packages/search.templ +++ b/pkg/app/handler/packages/search.templ @@ -19,7 +19,7 @@ templ search(query string, packages []searchResults) { </div> <div class="list-group"> for _, pkg := range packages { - <a class="list-group-item list-group-item-action" href={ templ.URL("/packages/" + pkg.Category+"/"+pkg.Name) }> + <a class="list-group-item list-group-item-action" href={ templ.URL("/packages/" + pkg.Category + "/" + pkg.Name) }> <h3 class="kk-search-result-header"><span class="text-muted">{ pkg.Category }/</span>{ pkg.Name }</h3> { pkg.Description } </a> |