ci/cd调整

This commit is contained in:
2026-06-10 16:10:09 +08:00
parent 062a09fc59
commit dbd9aa54f0
2 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ Write-Host "`n[1/7] Handle private dependencies..." -ForegroundColor Yellow
if (Test-Path "..\common") {
Copy-Item -Path "..\common" -Destination ".\common" -Recurse -Force
$content = Get-Content go.mod -Raw
$content = $content -replace 'replace gitea\.com/red-future/common => \.\./common', 'replace gitea.com/red-future/common => ./common'
$content = $content -replace 'replace gitea\.com/red-future/common => \.\./common', 'replace gitea.redpowerfuture.com/red-future/common => ./common'
Set-Content go.mod $content -NoNewline
Write-Host "[OK] Dependencies ready" -ForegroundColor Green
} else {

2
go.mod
View File

@@ -13,7 +13,7 @@ require (
golang.org/x/sync v0.18.0
)
replace gitea.com/red-future/common => ../common
replace gitea.redpowerfuture.com/red-future/common => ../common
require (
github.com/BurntSushi/toml v1.5.0 // indirect