mirror of
https://gitee.com/johng/gf
synced 2026-06-22 00:03:35 +08:00
v2 -> v3
This commit is contained in:
2
.github/workflows/scripts/before_script.sh
vendored
2
.github/workflows/scripts/before_script.sh
vendored
@ -21,7 +21,7 @@ gci write \
|
||||
-s blank \
|
||||
-s default \
|
||||
-s dot \
|
||||
-s "prefix(github.com/gogf/gf/v2)" \
|
||||
-s "prefix(github.com/gogf/gf/v3)" \
|
||||
-s "prefix(github.com/gogf/gf/cmd)" \
|
||||
-s "prefix(github.com/gogf/gf/contrib)" \
|
||||
-s "prefix(github.com/gogf/gf/example)" \
|
||||
|
||||
@ -57,7 +57,7 @@ for file in `find ${workdir} -name go.mod`; do
|
||||
[ -z "$dep" ] && continue
|
||||
|
||||
# Calculate the relative path for the replacement
|
||||
if [[ "$dep" == "github.com/gogf/gf/v2" ]]; then
|
||||
if [[ "$dep" == "github.com/gogf/gf/v3" ]]; then
|
||||
replacement="$relativePath"
|
||||
else
|
||||
# Extract the path after v2 and remove trailing version
|
||||
|
||||
Reference in New Issue
Block a user