Is building more involved than 'make build' (or: why is my custom build broken?) #61
Labels
No labels
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: forgejo/runner#61
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I checked out this commit:
35f432bd64
and built it locally withmake build
on linux-amd64.This gave me a ~17MB executable. When I use that one instead of one of the official 2.3.0 artifacts (from https://code.forgejo.org/forgejo/runner/releases/tag/v2.3.0) my job fails to even checkout the code.
Attached are two job logs:
Can you try to clear your cache
rm -fr /home/forgejo-runner/.cache/act
? It would help to read the workflow that failed.There is nothing more complicated to do than what you did.
Nevermind, the problem was I was building with go 1.20.6 which broke the docker package because of a backported fix re: host sanitization.
cf. https://github.com/nektos/act/issues/1908 if you're curious.
Thanks for the update. This 1.20.6 broke things in an interesting way but I would have not figured out that was the issue here.
It took me several days too!
Adding extra logging to "act" ended up printing "http: invalid Host header", and from there a quick google search led me to that act issue. Upgrading to a docker/docker pre-version fixes the issue (even on go 1.20.6).
I'm still getting the
failed to attach to exec: http: invalid Host header
error, even when using the latest commit (ab564ca25dd631f40c2a64e68509b72b4ff18b86
).However, when using the gitea-runner 0.2.5 it works without any problems.
I'm not sure if this is related to Alpine Linux, but according to the aports, the docker version (
Docker version 24.0.5, build ced099660009713e0e845eeb754e6050dbaa45d0
) was patched.(I used the same build process, and the same workflow for the forgejo and gitea runner)
That's unfortunate. Could you open a separate issue for that?
I just realized that I wasn't using the correct version label (I packaged the version as 2.3.0 but later renamed it to 0.2.3 which is why the package didn't update itself)
It appears to be working with the latest commit now.
Not sure if this is what fixed it, or if rebuilding it in a different folder solved it.