mirror of
https://gitee.com/johng/gf
synced 2026-06-26 09:27:31 +08:00
refract(database/gdb): remove Ctx function for DB and Model, add context.Context parameter for all Operation functions (#4249)
This commit is contained in:
4
.github/workflows/scripts/ci-main.sh
vendored
4
.github/workflows/scripts/ci-main.sh
vendored
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user