ci/cd调整
This commit is contained in:
@@ -6,7 +6,7 @@ Write-Host "`n[1/7] Handle private dependencies..." -ForegroundColor Yellow
|
|||||||
if (Test-Path "..\common") {
|
if (Test-Path "..\common") {
|
||||||
Copy-Item -Path "..\common" -Destination ".\common" -Recurse -Force
|
Copy-Item -Path "..\common" -Destination ".\common" -Recurse -Force
|
||||||
$content = Get-Content go.mod -Raw
|
$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
|
Set-Content go.mod $content -NoNewline
|
||||||
Write-Host "[OK] Dependencies ready" -ForegroundColor Green
|
Write-Host "[OK] Dependencies ready" -ForegroundColor Green
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
2
go.mod
2
go.mod
@@ -13,7 +13,7 @@ require (
|
|||||||
golang.org/x/sync v0.18.0
|
golang.org/x/sync v0.18.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace gitea.com/red-future/common => ../common
|
replace gitea.redpowerfuture.com/red-future/common => ../common
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/BurntSushi/toml v1.5.0 // indirect
|
github.com/BurntSushi/toml v1.5.0 // indirect
|
||||||
|
|||||||
Reference in New Issue
Block a user