refract(database/gdb): remove Ctx function for DB and Model, add context.Context parameter for all Operation functions (#4249)

This commit is contained in:
John Guo
2025-05-06 20:08:27 +08:00
committed by GitHub
parent 2cc4835c49
commit f52b7de1cf
164 changed files with 4834 additions and 5281 deletions

View File

@ -8,6 +8,7 @@ on:
- master
- develop
- personal/**
- feat/**
- feature/**
- enhance/**
- fix/**
@ -17,6 +18,7 @@ on:
- master
- develop
- personal/**
- feat/**
- feature/**
- enhance/**
- fix/**
@ -43,7 +45,7 @@ jobs:
go-version: [ "1.22", "1.23" ]
goarch: [ "386", "amd64" ]
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
# Service containers to run with `code-test`
services:

View File

@ -55,8 +55,8 @@ for file in `find . -name go.mod`; do
if [ "${coverage}" = "coverage" ]; then
go test ./... -race -coverprofile=coverage.out -covermode=atomic -coverpkg=./...,github.com/gogf/gf/... || exit 1
if grep -q "/gogf/gf/.*/v2" go.mod; then
sed -i "s/gogf\/gf\(\/.*\)\/v2/gogf\/gf\/v2\1/g" coverage.out
if grep -q "/gogf/gf/.*/v3" go.mod; then
sed -i "s/gogf\/gf\(\/.*\)\/v3/gogf\/gf\/v3\1/g" coverage.out
fi
else
go test ./... -race || exit 1

View File

@ -61,7 +61,7 @@ for file in `find ${workdir} -name go.mod`; do
replacement="$relativePath"
else
# Extract the path after v2 and remove trailing version
subpath=$(echo "$dep" | sed -E 's/github\.com\/gogf\/gf\/(contrib\/[^/]+\/[^/]+)\/v2.*/\1/')
subpath=$(echo "$dep" | sed -E 's/github\.com\/gogf\/gf\/(contrib\/[^/]+\/[^/]+)\/v3.*/\1/')
replacement="$relativePath/$subpath"
fi