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

git: wrap upstream gitutil cli #2005

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jedevc
Copy link
Collaborator

@jedevc jedevc commented Aug 16, 2023

⚠️ Requires moby/buildkit#4106.

Signed-off-by: Justin Chadwell <me@jedevc.com>
Signed-off-by: Justin Chadwell <me@jedevc.com>
@@ -94,7 +95,7 @@ func getGitAttributes(ctx context.Context, contextPath string, dockerfilePath st
}

if setGitLabels {
if root, err := gitc.RootDir(); err != nil {
if root, err := gitc.WorkTree(ctx); err != nil {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we still need the RootDir func otherwise root will always be empty here.

@thaJeztah
Copy link
Member

@jedevc I see moby/buildkit#4106 was merged; is this still something to complete? (and a rebase)?

@jedevc
Copy link
Collaborator Author

jedevc commented Jul 24, 2024

Yeah, ideally this would help remove some of the duplication between buildx and buildkit's custom git logic.

Unfortunately, I don't really have any spare cycles at the moment to pick up the rebase - however, I don't think there's anything that's critically changed in buildx for this? So shouldn't be too bad if someone else wants to pick up this up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants