We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 71480fc + 6619b1e commit 9ce1caeCopy full SHA for 9ce1cae
Dockerfile
@@ -1,5 +1,5 @@
1
# Build stage
2
-FROM docker.io/library/golang:1.24-alpine3.22 AS build-env
+FROM docker.io/library/golang:1.25-alpine3.22 AS build-env
3
4
ARG GOPROXY
5
ENV GOPROXY=${GOPROXY:-direct}
Dockerfile.rootless
Makefile
@@ -23,7 +23,7 @@ SHASUM ?= shasum -a 256
23
HAS_GO := $(shell hash $(GO) > /dev/null 2>&1 && echo yes)
24
COMMA := ,
25
26
-XGO_VERSION := go-1.24.x
+XGO_VERSION := go-1.25.x
27
28
AIR_PACKAGE ?= github.com/air-verse/air@v1
29
EDITORCONFIG_CHECKER_PACKAGE ?= github.com/editorconfig-checker/editorconfig-checker/v3/cmd/editorconfig-checker@v3
flake.lock
flake.nix
@@ -15,7 +15,7 @@
15
with pkgs;
16
let
17
# only bump toolchain versions here
18
- go = go_1_24;
+ go = go_1_25;
19
nodejs = nodejs_24;
20
python3 = python312;
21
options/locale/locale_zh-CN.ini
services/asymkey/sign.go
@@ -290,16 +290,22 @@ Loop:
290
return false, nil, nil, err
291
}
292
defer gitRepo.Close()
293
- commit, err := gitRepo.GetCommit(parentCommit)
+ isEmpty, err := gitRepo.IsEmpty()
294
if err != nil {
295
296
297
- if commit.Signature == nil {
298
- return false, nil, nil, &ErrWontSign{parentSigned}
299
- }
300
- verification := ParseCommitWithSignature(ctx, commit)
301
- if !verification.Verified {
302
+ if !isEmpty {
+ commit, err := gitRepo.GetCommit(parentCommit)
+ if err != nil {
+ return false, nil, nil, err
+ }
+ if commit.Signature == nil {
303
+ return false, nil, nil, &ErrWontSign{parentSigned}
304
305
+ verification := ParseCommitWithSignature(ctx, commit)
306
+ if !verification.Verified {
307
308
309
310
311
services/lfs/server.go
@@ -114,7 +114,7 @@ func DownloadHandler(ctx *context.Context) {
114
115
116
117
- ctx.Resp.Header().Set("Content-Range", fmt.Sprintf("bytes %d-%d/%d", fromByte, toByte, meta.Size-fromByte))
+ ctx.Resp.Header().Set("Content-Range", fmt.Sprintf("bytes %d-%d/%d", fromByte, toByte, meta.Size))
118
ctx.Resp.Header().Set("Access-Control-Expose-Headers", "Content-Range")
119
120
services/migrations/github.go
@@ -354,7 +354,8 @@ func (g *GithubDownloaderV3) convertGithubRelease(ctx context.Context, rel *gith
354
355
// Prevent open redirect
356
if !hasBaseURL(redirectURL, g.baseURL) &&
357
- !hasBaseURL(redirectURL, "https://objects.githubusercontent.com/") {
+ !hasBaseURL(redirectURL, "https://objects.githubusercontent.com/") &&
358
+ !hasBaseURL(redirectURL, "https://release-assets.githubusercontent.com/") {
359
WarnAndNotice("Unexpected AssetURL for assetID[%d] in %s: %s", asset.GetID(), g, redirectURL)
360
361
return io.NopCloser(strings.NewReader(redirectURL)), nil
snap/snapcraft.yaml
@@ -44,7 +44,7 @@ parts:
44
source: .
45
stage-packages: [ git, sqlite3, openssh-client ]
46
build-packages: [ git, libpam0g-dev, libsqlite3-dev, build-essential]
47
- build-snaps: [ go/1.24/stable, node/22/stable ]
+ build-snaps: [ go/1.25/stable, node/22/stable ]
48
build-environment:
49
- LDFLAGS: ""
50
override-pull: |
0 commit comments