[GH-ISSUE #1908] go 1.20.6: failed to attach to exec: http: invalid Host header #920

Closed
opened 2026-03-01 21:47:26 +03:00 by kerem · 4 comments
Owner

Originally created by @earl-warren on GitHub (Jul 12, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/1908

Bug report info

When compiled with go 1.20.6 ACT will fail with:


TRAC[2023-07-12T10:51:41+02:00] Working directory '/workspace/root/tet'       dryrun=false job=/test jobID=test matrix="map[]" stage=Main step="echo All Goodaa" stepID="[0]" stepNumber=0
[/test] [DEBUG] Working directory '/workspace/root/tet'
TRAC[2023-07-12T10:51:41+02:00]   ❌  Failure - Main echo All Goodaa           dryrun=false job=/test jobID=test matrix="map[]" stage=Main step="echo All Goodaa" stepID="[0]" stepNumber=0 stepResult=failure
[/test]   ❌  Failure - Main echo All Goodaa
TRAC[2023-07-12T10:51:41+02:00] failed to attach to exec: http: invalid Host header  dryrun=false job=/test jobID=test matrix="map[]" stage=Main step="echo All Goodaa" stepID="[0]" stepNumber=0
[/test] failed to attach to exec: http: invalid Host header
TRAC[2023-07-12T10:51:41+02:00] Cleaning up services for job test             dryrun=false job=/test jobID=test matrix="map[]"

https://github.com/golang/go/issues/61076



### Command used with act

```sh
All workflows will do that.

Describe issue

No response

Workflow content

on: [push]
jobs:
  test:
    runs-on: docker
    steps:
      - run: echo All Good


### Relevant log output

```sh
-

Additional information

No response

Originally created by @earl-warren on GitHub (Jul 12, 2023). Original GitHub issue: https://github.com/nektos/act/issues/1908 ### Bug report info ```plain text When compiled with go 1.20.6 ACT will fail with: TRAC[2023-07-12T10:51:41+02:00] Working directory '/workspace/root/tet' dryrun=false job=/test jobID=test matrix="map[]" stage=Main step="echo All Goodaa" stepID="[0]" stepNumber=0 [/test] [DEBUG] Working directory '/workspace/root/tet' TRAC[2023-07-12T10:51:41+02:00] ❌ Failure - Main echo All Goodaa dryrun=false job=/test jobID=test matrix="map[]" stage=Main step="echo All Goodaa" stepID="[0]" stepNumber=0 stepResult=failure [/test] ❌ Failure - Main echo All Goodaa TRAC[2023-07-12T10:51:41+02:00] failed to attach to exec: http: invalid Host header dryrun=false job=/test jobID=test matrix="map[]" stage=Main step="echo All Goodaa" stepID="[0]" stepNumber=0 [/test] failed to attach to exec: http: invalid Host header TRAC[2023-07-12T10:51:41+02:00] Cleaning up services for job test dryrun=false job=/test jobID=test matrix="map[]" ``` https://github.com/golang/go/issues/61076 ``` ### Command used with act ```sh All workflows will do that. ``` ### Describe issue - ### Link to GitHub repository _No response_ ### Workflow content ```yml on: [push] jobs: test: runs-on: docker steps: - run: echo All Good ``` ``` ### Relevant log output ```sh - ``` ### Additional information _No response_
kerem 2026-03-01 21:47:26 +03:00
Author
Owner

@ChristopherHX commented on GitHub (Jul 12, 2023):

Bug of dependency github.com/docker/docker.

-P docker=-self-hosted is working by not using that package.

<!-- gh-comment-id:1632205879 --> @ChristopherHX commented on GitHub (Jul 12, 2023): Bug of dependency `github.com/docker/docker`. `-P docker=-self-hosted` is working by not using that package. - https://github.com/moby/moby/issues/45935 - https://github.com/testcontainers/testcontainers-go/issues/1359 (even if it is not opened in the repository with the bug)
Author
Owner

@ChristopherHX commented on GitHub (Jul 17, 2023):

I have injected a patch into this PR from docker/cli github.com/nektos/act@4810f69367 (using a prerelease of docker/docker)

<!-- gh-comment-id:1638798573 --> @ChristopherHX commented on GitHub (Jul 17, 2023): I have injected a patch into this PR from docker/cli https://github.com/nektos/act/commit/4810f69367a141f9cc282d21ab61bb598d5ec584 (using a prerelease of docker/docker)
Author
Owner

@metaory commented on GitHub (Aug 5, 2023):

Hi @ChristopherHX I'm facing the same issue,
given that the issue closed and there a fix commit, is there anything I should be doing to get around this?

<!-- gh-comment-id:1666408289 --> @metaory commented on GitHub (Aug 5, 2023): Hi @ChristopherHX I'm facing the same issue, given that the issue closed and there a fix commit, is there anything I should be doing to get around this?
Author
Owner

@metaory commented on GitHub (Aug 5, 2023):

my bad, the AUR package is old (v0.2.48-1), the latest release v0.2.49 don't seem to have the issue 👍

<!-- gh-comment-id:1666409804 --> @metaory commented on GitHub (Aug 5, 2023): my bad, the [AUR](https://aur.archlinux.org/packages/act) package is old (`v0.2.48-1`), the latest release `v0.2.49` don't seem to have the issue :+1:
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#920
No description provided.