Skip to content

feat: add Directory.asGit - #9098

Closed
jedevc wants to merge 3 commits into
dagger:mainfrom
jedevc:git-as-directory
Closed

jedevc wants to merge 3 commits into
dagger:mainfrom
jedevc:git-as-directory

Conversation

@jedevc

@jedevc jedevc commented Dec 3, 2024

Copy link
Copy Markdown
Contributor

Warning

Implementation is not complete!

Fixes #8720.

Opening a draft PR to track this!

Comment thread core/git.go Outdated
Comment on lines +393 to +397
pbDef, _, err := bk.EngineContainerLocalImport(ctx, platforms.DefaultSpec(), tmpDir, nil, nil)
if err != nil {
return nil, fmt.Errorf("failed to import container tarball from engine container filesystem: %w", err)
}

@jedevc jedevc Dec 3, 2024 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

As mentioned by @sipsma on discord, we should avoid the use of this API entirely - it caches very badly, and is not very fun to maintain.

Updating/adding an LLB source is a better route. I think we could actually customize or even add new LLB ops (not just sources) now that we have our own worker too (just need to handle calling it in ResolveOp).

Those options give you access to raw snapshots/mounts so you should be able to do whatever you want

(similar to #6927)

@github-actions

Copy link
Copy Markdown
Contributor

This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions

github-actions Bot commented Jan 4, 2025

Copy link
Copy Markdown
Contributor

This PR was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions Bot closed this Jan 4, 2025
@jedevc jedevc reopened this Jan 6, 2025
@jedevc jedevc removed the kind/stale label Jan 6, 2025
@jedevc jedevc mentioned this pull request Jan 16, 2025
3 tasks done
These are exclusively used in modulesource.go, so we should move them to
there.

Signed-off-by: Justin Chadwell <[email protected]>
Signed-off-by: Justin Chadwell <[email protected]>
@github-actions

github-actions Bot commented Feb 1, 2025

Copy link
Copy Markdown
Contributor

This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions

github-actions Bot commented Feb 9, 2025

Copy link
Copy Markdown
Contributor

This PR was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions Bot closed this Feb 9, 2025
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.

✨ Need "local" support for git repos that are directories on the filesystem

1 participant