2
0

Compare commits

..

7 Commits

Author SHA1 Message Date
97b534f66b build(ci): replace go mod tidy with go mod download
Some checks failed
Build and Release / Build Binary (linux/arm64) (push) Blocked by required conditions
Build and Release / Create Release (push) Successful in 0s
Build and Release / Integration Tests (PostgreSQL) (push) Successful in 3m6s
Build and Release / Unit Tests (push) Successful in 11m6s
Build and Release / Lint (push) Successful in 11m18s
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Failing after 2m3s
Build and Release / Build Binaries (amd64, darwin, macos) (push) Successful in 4m3s
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Successful in 9h6m29s
Build and Release / Build Binaries (arm64, darwin, macos) (push) Successful in 4m26s
Use go mod download instead of go mod tidy in CI workflows to avoid unnecessary modifications to go.mod and go.sum files during builds
2026-04-24 02:44:29 -04:00
eb969b8f82 build(deps): update go toolchain from 1.25.5 to 1.25.9
Some checks failed
Build and Release / Integration Tests (PostgreSQL) (push) Successful in 5m14s
Build and Release / Create Release (push) Successful in 0s
Build and Release / Unit Tests (push) Successful in 6m32s
Build and Release / Lint (push) Successful in 6m44s
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Failing after 1m57s
Build and Release / Build Binaries (arm64, darwin, macos) (push) Has been cancelled
Build and Release / Build Binary (linux/arm64) (push) Has been cancelled
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Has been cancelled
Build and Release / Build Binaries (amd64, darwin, macos) (push) Has been cancelled
2026-04-24 02:27:54 -04:00
b310e8ed18 build(deps): exclude gitea SDK v0.24.0 to pin to v0.22.0
Some checks failed
Build and Release / Create Release (push) Successful in 1s
Build and Release / Integration Tests (PostgreSQL) (push) Successful in 3m4s
Build and Release / Unit Tests (push) Successful in 10m39s
Build and Release / Lint (push) Successful in 11m10s
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Failing after 1m38s
Build and Release / Build Binaries (amd64, darwin, macos) (push) Successful in 4m1s
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Successful in 9h5m4s
Build and Release / Build Binaries (arm64, darwin, macos) (push) Successful in 3m53s
Build and Release / Build Binary (linux/arm64) (push) Successful in 8m58s
Add exclusion for gitea SDK v0.24.0 in addition to v0.24.1 since the entire v0.24.x series requires go 1.26
2026-04-24 01:46:14 -04:00
e8286de3be fix(deps): exclude gitea SDK v0.24.1 requiring Go 1.26
Some checks failed
Build and Release / Integration Tests (PostgreSQL) (push) Successful in 5m45s
Build and Release / Create Release (push) Successful in 0s
Build and Release / Unit Tests (push) Successful in 6m13s
Build and Release / Lint (push) Successful in 6m24s
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Failing after 1m38s
Build and Release / Build Binaries (amd64, darwin, macos) (push) Successful in 3m59s
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Successful in 9h4m46s
Build and Release / Build Binaries (arm64, darwin, macos) (push) Successful in 3m49s
Build and Release / Build Binary (linux/arm64) (push) Failing after 18m45s
Add exclude directive for code.gitea.io/sdk/gitea v0.24.1 to prevent automatic upgrade to version requiring Go 1.26 while project remains on Go 1.25.
2026-04-24 00:54:06 -04:00
4648a021c5 Update build.yml
Some checks failed
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Has been skipped
Build and Release / Build Binaries (arm64, darwin, macos) (push) Has been skipped
Build and Release / Build Binary (linux/arm64) (push) Has been skipped
Build and Release / Create Release (push) Successful in 0s
Build and Release / Integration Tests (PostgreSQL) (push) Successful in 4m21s
Build and Release / Unit Tests (push) Successful in 5m10s
Build and Release / Lint (push) Successful in 7m40s
Build and Release / Build Binaries (amd64, darwin, macos) (push) Successful in 4m4s
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Failing after 1m40s
2026-04-23 18:08:20 -04:00
1a335e741b fix(ci): download modules before bindata generation
Some checks failed
Build and Release / Integration Tests (PostgreSQL) (push) Successful in 3m12s
Build and Release / Create Release (push) Successful in 1s
Build and Release / Unit Tests (push) Successful in 10m25s
Build and Release / Lint (push) Successful in 11m51s
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Failing after 3m10s
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Successful in 9h4m28s
Build and Release / Build Binaries (amd64, darwin, macos) (push) Successful in 5m44s
Build and Release / Build Binaries (arm64, darwin, macos) (push) Successful in 4m26s
Build and Release / Build Binary (linux/arm64) (push) Successful in 9m13s
Add explicit go mod download before make generate to ensure all dependencies (including updated vault) are available for bindata generation.
2026-04-23 17:04:06 -04:00
998337e80d fix(ci): revert to go mod tidy with error suppression
Some checks failed
Build and Release / Create Release (push) Successful in 0s
Build and Release / Unit Tests (push) Successful in 3m50s
Build and Release / Integration Tests (PostgreSQL) (push) Successful in 9m26s
Build and Release / Lint (push) Successful in 10m32s
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Failing after 3m5s
Build and Release / Build Binaries (amd64, darwin, macos) (push) Successful in 4m55s
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Successful in 9h4m46s
Build and Release / Build Binary (linux/arm64) (push) Has been cancelled
Build and Release / Build Binaries (arm64, darwin, macos) (push) Has been cancelled
Revert back to go mod tidy but add || true to prevent build failures from tidy errors after vault dependency update.
2026-04-23 16:45:42 -04:00
3 changed files with 21 additions and 17 deletions

View File

@@ -16,7 +16,7 @@ env:
GOPRIVATE: git.marketally.com
GONOSUMDB: git.marketally.com
GOTOOLCHAIN: local
GO_VERSION: "1.26.2"
GO_VERSION: "1.25.9"
NODE_VERSION: "22"
jobs:
@@ -346,10 +346,11 @@ jobs:
- name: Update vault dependency (Unix)
if: matrix.goos != 'windows'
env:
GOPRIVATE: ""
GOPROXY: direct
run: |
set -x
export GOPRIVATE=""
export GOPROXY=direct
VAULT_VERSION="${{ steps.vault.outputs.version }}"
echo "Building with vault $VAULT_VERSION"
# BSD sed (macOS) requires -i '', GNU sed (Linux) requires -i without arg
@@ -359,14 +360,15 @@ jobs:
sed -i "s|replace git.marketally.com/gitcaddy/gitcaddy-vault => ../gitcaddy-vault|replace git.marketally.com/gitcaddy/gitcaddy-vault => git.marketally.com/gitcaddy/gitcaddy-vault $VAULT_VERSION|" go.mod
fi
cat go.mod | grep -A2 "gitcaddy-vault" || true
go mod download 2>&1
go mod download
- name: Update vault dependency (Windows)
if: matrix.goos == 'windows'
shell: pwsh
env:
GOPRIVATE: ""
GOPROXY: direct
run: |
$env:GOPRIVATE = ""
$env:GOPROXY = "direct"
$vaultVersion = "${{ steps.vault-win.outputs.version }}"
Write-Host "Building with vault $vaultVersion"
$content = Get-Content go.mod -Raw
@@ -599,13 +601,7 @@ jobs:
- name: Install Go
run: |
# Resolve the full version (go.dev requires patch version, e.g. 1.26.0 not 1.26)
GO_DL_VERSION="${{ env.GO_VERSION }}"
if ! echo "$GO_DL_VERSION" | grep -qE '^[0-9]+\.[0-9]+\.[0-9]+'; then
GO_DL_VERSION="${GO_DL_VERSION}.0"
fi
echo "Downloading go${GO_DL_VERSION}.linux-arm64.tar.gz"
curl -fsSL "https://go.dev/dl/go${GO_DL_VERSION}.linux-arm64.tar.gz" -o go.tar.gz
curl -fsSL "https://go.dev/dl/go${{ env.GO_VERSION }}.linux-arm64.tar.gz" -o go.tar.gz
tar -C /usr/local -xzf go.tar.gz
rm go.tar.gz
echo "/usr/local/go/bin" >> $GITHUB_PATH
@@ -632,15 +628,16 @@ jobs:
./scripts/sync-vault.sh
- name: Update vault dependency
env:
GOPRIVATE: ""
GOPROXY: direct
run: |
set -x
export GOPRIVATE=""
export GOPROXY=direct
VAULT_VERSION="${{ steps.vault.outputs.version }}"
echo "Building with vault $VAULT_VERSION"
sed -i "s|replace git.marketally.com/gitcaddy/gitcaddy-vault => ../gitcaddy-vault|replace git.marketally.com/gitcaddy/gitcaddy-vault => git.marketally.com/gitcaddy/gitcaddy-vault $VAULT_VERSION|" go.mod
cat go.mod | grep -A2 "gitcaddy-vault" || true
/usr/local/go/bin/go mod download 2>&1
/usr/local/go/bin/go mod download
- name: Install pnpm
run: npm install -g pnpm

7
go.mod
View File

@@ -2,7 +2,7 @@ module code.gitcaddy.com/server/v3
go 1.25.0
toolchain go1.25.5
toolchain go1.25.9
// rfc5280 said: "The serial number is an integer assigned by the CA to each certificate."
// But some CAs use negative serial number, just relax the check. related:
@@ -340,4 +340,9 @@ exclude github.com/goccy/go-json v0.4.11
exclude github.com/satori/go.uuid v1.2.0
// Pin SDK to v0.22.0 — v0.24.x requires go 1.26
exclude code.gitea.io/sdk/gitea v0.24.0
exclude code.gitea.io/sdk/gitea v0.24.1
tool code.gitea.io/gitea-vet

2
go.sum
View File

@@ -31,6 +31,8 @@ filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA=
filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4=
git.marketally.com/gitcaddy/actions-proto-go v0.5.8 h1:MBipeHvY6A0jcobvziUtzgatZTrV4fs/HE1rPQxREN4=
git.marketally.com/gitcaddy/actions-proto-go v0.5.8/go.mod h1:RPu21UoRD3zSAujoZR6LJwuVNa2uFRBveadslczCRfQ=
git.marketally.com/gitcaddy/gitcaddy-vault v1.0.60 h1:SHmAZG1PxbC9kG9gWdrhrQ7cHVmP0e6iMloBK100kQA=
git.marketally.com/gitcaddy/gitcaddy-vault v1.0.60/go.mod h1:UAmVrJUXHsGe3iJz2gmow2zsIE/KAXaW4jKytrxT8jQ=
git.marketally.com/mirrors/gotextdiff v1.0.3 h1:Mxf+YurdCHT4y1GNiZCTDWYtVXSxhlLUeG7g7i9Za70=
git.marketally.com/mirrors/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg=
gitea.com/gitea/act v0.261.7-0.20251003180512-ac6e4b751763 h1:ohdxegvslDEllZmRNDqpKun6L4Oq81jNdEDtGgHEV2c=