Skip to content

Commit 5164924

Browse files
committed
pin CI for compatibility and upgrade tests to go version 1.20.5 as 1.20.6 introduces an invalid host header error
1 parent 747195f commit 5164924

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/test-integrations.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,10 +370,13 @@ jobs:
370370
- name: Setup Git
371371
if: ${{ endsWith(github.repository, '-enterprise') }}
372372
run: git config --global url."https://${{ secrets.ELEVATED_GITHUB_TOKEN }}:@github.com".insteadOf "https://github.com"
373-
# checking to see if 1.26.4 fails
374373
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
375374
with:
376-
go-version-file: 'go.mod'
375+
# pinning this to 1.20.5 because this issue in go-testcontainers occurs
376+
# in 1.20.6 with the error "http: invalid Host header, host port waiting failed"
377+
# https://github.com/testcontainers/testcontainers-go/issues/1359
378+
# go-version-file: 'go.mod'
379+
go-version: '1.20.5'
377380
- run: go env
378381
- name: docker env
379382
run: |
@@ -486,10 +489,13 @@ jobs:
486489
- name: Setup Git
487490
if: ${{ endsWith(github.repository, '-enterprise') }}
488491
run: git config --global url."https://${{ secrets.ELEVATED_GITHUB_TOKEN }}:@github.com".insteadOf "https://github.com"
489-
# checking to see if 1.26.4 fails
490492
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
491493
with:
492-
go-version-file: 'go.mod'
494+
# pinning this to 1.20.5 because this issue in go-testcontainers occurs
495+
# in 1.20.6 with the error "http: invalid Host header, host port waiting failed"
496+
# https://github.com/testcontainers/testcontainers-go/issues/1359
497+
# go-version-file: 'go.mod'
498+
go-version: '1.20.5'
493499
- run: go env
494500

495501
# Get go binary from workspace

0 commit comments

Comments
 (0)