diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 698c9e41..c0eb355c 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -31,7 +31,7 @@ jobs: strategy: fail-fast: false # Keep running if one leg fails. matrix: - os: [ubuntu-latest] # , macos-latest, windows-latest] Enable later so we don't waste github actions resources + os: [ubuntu-latest, macos-latest, windows-latest] go-version: ${{ fromJSON(needs.get-go-versions.outputs.matrix) }} runs-on: ${{ matrix.os }} needs: get-go-versions @@ -47,7 +47,7 @@ jobs: strategy: fail-fast: false # Keep running if one leg fails. matrix: - os: [ubuntu-latest] # , macos-latest, windows-latest] Enable later so we don't waste github actions resources + os: [ubuntu-latest, macos-latest, windows-latest] go-version: ${{ fromJSON(needs.get-go-versions.outputs.matrix) }} runs-on: ${{ matrix.os }} needs: get-go-versions @@ -63,7 +63,7 @@ jobs: strategy: fail-fast: false # Keep running if one leg fails. matrix: - os: [ubuntu-latest] # , macos-latest, windows-latest] Enable later so we don't waste github actions resources + os: [ubuntu-latest, macos-latest, windows-latest] go-version: ${{ fromJSON(needs.get-go-versions.outputs.matrix) }} runs-on: ${{ matrix.os }} needs: get-go-versions @@ -79,7 +79,7 @@ jobs: strategy: fail-fast: false # Keep running if one leg fails. matrix: - os: [ubuntu-latest] # , macos-latest, windows-latest] Enable later so we don't waste github actions resources + os: [ubuntu-latest, macos-latest, windows-latest] go-version: ${{ fromJSON(needs.get-go-versions.outputs.matrix) }} runs-on: ${{ matrix.os }} needs: get-go-versions @@ -95,7 +95,7 @@ jobs: strategy: fail-fast: false # Keep running if one leg fails. matrix: - os: [ubuntu-latest] # , macos-latest, windows-latest] Enable later so we don't waste github actions resources + os: [ubuntu-latest, macos-latest, windows-latest] go-version: ${{ fromJSON(needs.get-go-versions.outputs.matrix) }} runs-on: ${{ matrix.os }} needs: get-go-versions diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5767ae60..619ce143 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -32,7 +32,7 @@ jobs: strategy: fail-fast: false # Keep running if one leg fails. matrix: - os: [ubuntu-latest, windows-latest] # , ] Enable later so we don't waste github actions resources + os: [ubuntu-latest, macos-latest, windows-latest] go-version: ${{ fromJSON(needs.get-go-versions.outputs.matrix) }} runs-on: ${{ matrix.os }} needs: get-go-versions diff --git a/metadata/fetcher/fetcher.go b/metadata/fetcher/fetcher.go index 49234722..6eb36094 100644 --- a/metadata/fetcher/fetcher.go +++ b/metadata/fetcher/fetcher.go @@ -56,7 +56,7 @@ func (d *DefaultFetcher) DownloadFile(urlPath string, maxLength int64, timeout t } defer res.Body.Close() // Handle HTTP status codes. - if res.StatusCode == http.StatusNotFound || res.StatusCode == http.StatusForbidden || res.StatusCode != http.StatusOK { + if res.StatusCode != http.StatusOK { return nil, &metadata.ErrDownloadHTTP{StatusCode: res.StatusCode, URL: urlPath} } var length int64