-
Notifications
You must be signed in to change notification settings - Fork 581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fatal: Not a valid object name
during load git source
triggered by on: push:
(with self-hosted runner)
#1083
Comments
Can confirm that this is still a problem. |
@aderk Sorry for the delay, do you have a link to your repo? Are you using submodules?
Also this message should not fail your build and still fetch correctly per moby/buildkit#2888. |
I've been hitting this as well, weirdly removing "permissions" from the YAML seemed to help. I'm planning to open source the repo in a week or so, if I remember I'll post links to the failing action. |
In the meantime this action should reproduce it, I don't think you'll need the Dockerfile:
If I comment out |
Contributing guidelines
I've found a bug, and:
Description
build-push-action@v5.3.0 fails to get the ref during
on: push:
trigger (on: pull_request:
works as expected). It then falls back to downloading cloning the entire repo (slow).Succinctly,
build-push-action@v5.3.0
succeeds with refs of the formhttps://github.com/OWNER_NAME/REPO_NAME.git#refs/pull/PULL_NUMBER/merge
and fails (with fallback to full clone) with the formhttps://github.com/OWNER_NAME/REPO_NAME.git#SHA
Expected behaviour
Only the ref w/ depth=1 is fetched (fast) as with
on: pull_request:
triggers.Actual behaviour
The whole repo is cloned (slow). In my case it takes 8m instead of 1m
Repository URL
No response
Workflow run URL
No response
YAML workflow
Workflow logs
No response
BuildKit logs
No response
Additional info
#638 is somewhat similar, in that the initial error log line is identical
fatal: Not a valid object name
The text was updated successfully, but these errors were encountered: