mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-18 14:23:42 +00:00
ci: downgrade to Ubuntu 22.04 (#1128)
This commit is contained in:
3 files changed
+11
-10
No files matched your search
@@ -258,7 +258,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-24.04, ubuntu-24.04-arm]
|
os: [ubuntu-22.04, ubuntu-22.04-arm]
|
||||||
needs: [get-release]
|
needs: [get-release]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [windows-latest, macos-latest, ubuntu-24.04, ubuntu-24.04-arm]
|
os: [windows-latest, macos-latest, ubuntu-22.04, ubuntu-22.04-arm]
|
||||||
needs: [test]
|
needs: [test]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|||||||
@@ -386,19 +386,20 @@ func (f *Fetcher) run(index int, ctx context.Context) (err error) {
|
|||||||
resp *http.Response
|
resp *http.Response
|
||||||
)
|
)
|
||||||
f.redirectLock.Lock()
|
f.redirectLock.Lock()
|
||||||
if f.redirectURL != "" {
|
redirectURL := f.redirectURL
|
||||||
|
if redirectURL != "" {
|
||||||
f.redirectLock.Unlock()
|
f.redirectLock.Unlock()
|
||||||
}
|
} else {
|
||||||
err = func() (err error) {
|
// Only hold the lock when we need to potentially set redirectURL
|
||||||
defer func() {
|
defer func() {
|
||||||
if f.redirectURL == "" {
|
if redirectURL == "" && err == nil {
|
||||||
if err == nil {
|
f.redirectURL = resp.Request.URL.String()
|
||||||
f.redirectURL = resp.Request.URL.String()
|
|
||||||
}
|
|
||||||
f.redirectLock.Unlock()
|
|
||||||
}
|
}
|
||||||
|
f.redirectLock.Unlock()
|
||||||
}()
|
}()
|
||||||
|
}
|
||||||
|
|
||||||
|
err = func() (err error) {
|
||||||
httpReq, err = f.buildRequest(ctx, f.meta.Req)
|
httpReq, err = f.buildRequest(ctx, f.meta.Req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in new issue
Block a user