Compare commits

...

3 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
d83308f29a fix: update golangci-lint-action to v6 and remove deprecated linters
Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com>
Agent-Logs-Url: https://github.com/casdoor/casdoor/sessions/7c8360de-bb17-4fd6-8106-81a46e803e81
2026-03-25 12:50:22 +00:00
copilot-swe-agent[bot]
60e5a67c72 chore: update Go version from 1.24.13 to 1.25.8
Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com>
Agent-Logs-Url: https://github.com/casdoor/casdoor/sessions/b091838d-6d85-4f89-8a82-baf2bdd25ae1
2026-03-24 15:26:51 +00:00
copilot-swe-agent[bot]
130030bee9 Initial plan 2026-03-24 15:23:47 +00:00
4 changed files with 8 additions and 12 deletions

View File

@@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.23'
go-version: '1.25'
cache-dependency-path: ./go.mod
- name: Tests
run: |
@@ -59,7 +59,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.23'
go-version: '1.25'
cache-dependency-path: ./go.mod
- run: go version
- name: Build
@@ -75,14 +75,14 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.23'
go-version: '1.25'
cache: false
# gen a dummy config file
- run: touch dummy.yml
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
version: latest
args: --disable-all -c dummy.yml -E=gofumpt --max-same-issues=0 --timeout 5m --modules-download-mode=mod
@@ -104,7 +104,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.23'
go-version: '1.25'
cache-dependency-path: ./go.mod
- name: start backend
run: nohup go run ./main.go > /tmp/backend.log 2>&1 &

View File

@@ -1,7 +1,6 @@
linters:
disable-all: true
enable:
- deadcode
- dupl
- errcheck
- goconst
@@ -17,14 +16,11 @@ linters:
- nakedret
- prealloc
- staticcheck
- structcheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
- revive
- exportloopref
run:
deadline: 5m
skip-dirs:

View File

@@ -9,7 +9,7 @@ RUN yarn install --frozen-lockfile --network-timeout 1000000
COPY ./web .
RUN NODE_OPTIONS="--max-old-space-size=4096" yarn run build
FROM --platform=$BUILDPLATFORM golang:1.24.13 AS BACK
FROM --platform=$BUILDPLATFORM golang:1.25.8 AS BACK
WORKDIR /go/src/casdoor
# Copy only go.mod and go.sum first for dependency caching

4
go.mod
View File

@@ -1,8 +1,8 @@
module github.com/casdoor/casdoor
go 1.24.0
go 1.25.0
toolchain go1.24.13
toolchain go1.25.8
require (
github.com/Masterminds/squirrel v1.5.3