bug: "no space after hash" error when cloning sha256 action repository #1196

Closed
opened 2025-12-01 12:33:36 +00:00 by msrd0 · 5 comments
Member

Description

Trying to download a sha256 action repository (e.g. https://code.forgejo.org/msrd0/checkout) produces the following error in the "Set up Job" step:

  ☁️  git clone 'https://code.forgejo.org/msrd0/checkout' # ref=v1
Unable to clone https://code.forgejo.org/msrd0/checkout refs/heads/v1: pkt-line 3: no space after hash (d05112f6a932de50d191d4bf HEADmulti_ack thin-pack side-band side-band-64k ofs-delta shallow deepen-since deepen-not deepen-relative no-progress include-tag multi_ack_detailed allow-tip-sha1-in-want allow-reachable-sha1-in-want no-done symref=HEAD:refs/heads/v1 filter object-format=sha256 agent=git/2.49.1-Linux)
⚙️ [runner]: pkt-line 3: no space after hash (d05112f6a932de50d191d4bf HEADmulti_ack thin-pack side-band side-band-64k ofs-delta shallow deepen-since deepen-not deepen-relative no-progress include-tag multi_ack_detailed allow-tip-sha1-in-want allow-reachable-sha1-in-want no-done symref=HEAD:refs/heads/v1 filter object-format=sha256 agent=git/2.49.1-Linux)

Forgejo Version

whatever codeberg is using

Runner Version

12.1.0

How are you running Forgejo?

whatever codeberg is using

How are you running the Runner?

I tried two different runners. First is installed on an AlpineLinux 3.20 amd64 host inside the official docker container. Second is installed directly on an AlpineLinux 3.22 aarch64 host. Both produced the exact same error.

Logs

No response

Workflow file

No response

### Description Trying to download a sha256 action repository (e.g. https://code.forgejo.org/msrd0/checkout) produces the following error in the "Set up Job" step: ``` ☁️ git clone 'https://code.forgejo.org/msrd0/checkout' # ref=v1 Unable to clone https://code.forgejo.org/msrd0/checkout refs/heads/v1: pkt-line 3: no space after hash (d05112f6a932de50d191d4bf HEADmulti_ack thin-pack side-band side-band-64k ofs-delta shallow deepen-since deepen-not deepen-relative no-progress include-tag multi_ack_detailed allow-tip-sha1-in-want allow-reachable-sha1-in-want no-done symref=HEAD:refs/heads/v1 filter object-format=sha256 agent=git/2.49.1-Linux) ⚙️ [runner]: pkt-line 3: no space after hash (d05112f6a932de50d191d4bf HEADmulti_ack thin-pack side-band side-band-64k ofs-delta shallow deepen-since deepen-not deepen-relative no-progress include-tag multi_ack_detailed allow-tip-sha1-in-want allow-reachable-sha1-in-want no-done symref=HEAD:refs/heads/v1 filter object-format=sha256 agent=git/2.49.1-Linux) ``` ### Forgejo Version whatever codeberg is using ### Runner Version 12.1.0 ### How are you running Forgejo? whatever codeberg is using ### How are you running the Runner? I tried two different runners. First is installed on an AlpineLinux 3.20 amd64 host inside the official docker container. Second is installed directly on an AlpineLinux 3.22 aarch64 host. Both produced the exact same error. ### Logs _No response_ ### Workflow file _No response_
Member
Related to the checkout bug [actions/checkout fails on git repos that use SHA256](https://github.com/actions/checkout/issues/1843)
Author
Member

@limiting-factor I don't believe they are related. Since the checkout action itself is an action that needs to be downloaded by the runner, I would be very surprised if the runner used the checkout action to check out action repositories. And I am not using the github checkout action or any fork of it (because I know it is broken for sha256).

@limiting-factor I don't believe they are related. Since the checkout action itself is an action that needs to be downloaded by the runner, I would be very surprised if the runner used the checkout action to check out action repositories. And I am not using the github checkout action or any fork of it (because I know it is broken for sha256).
Member

My comment was off topic.

The runner uses go-git so https://github.com/go-git/go-git/issues/706 is related.

My comment was off topic. The runner uses go-git so https://github.com/go-git/go-git/issues/706 is related.
Owner

Agreed w/ @limiting-factor -- this is blocked on either upstream support for go-git, or removing the usage of go-git.

As runner now has a runtime requirement for a local git installation, it's quite possible to continue removing the usage. This isn't in my personal immediate plans, but I'd help support anyone else interested in the work.

Agreed w/ @limiting-factor -- this is blocked on either upstream support for go-git, or removing the usage of go-git. As runner now has a runtime requirement for a local git installation, it's quite possible to continue removing the usage. This isn't in my personal immediate plans, but I'd help support anyone else interested in the work.
mfenniak changed title from bug: "no space after hash" error when cloning action repository to bug: "no space after hash" error when cloning sha256 action repository 2025-12-17 14:30:43 +00:00
Member

Should be fixed with #1255. It's part of Forgejo Runner 12.5.0.

Should be fixed with https://code.forgejo.org/forgejo/runner/pulls/1255. It's part of Forgejo Runner 12.5.0.
Sign in to join this conversation.
No milestone
No assignees
4 participants
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
forgejo/runner#1196
No description provided.