Skip to content
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

WIP: Git checkout cache #1141

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

xnox
Copy link
Contributor

@xnox xnox commented Apr 16, 2024

WIP

One can end up in detached head upon checking out a tag already. Thus
move config to remove detached head warning earlier, before any git
commands are executed.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@chainguard.dev>
Initialize a bare repository in melange cache and fetch all potential
desired objects into it.

Then continue git clone as before.

This means that any package rebuilds will be quicker
w.r.t. git-checkout pipeline action.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@chainguard.dev>
@xnox xnox marked this pull request as draft April 16, 2024 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant