Skip to content

Add support for Merge and Diff fs operations. - #1768

Merged
aluzzardi merged 1 commit into
dagger:mainfrom
sipsma:merge-diff
Mar 15, 2022
Merged

aluzzardi merged 1 commit into
dagger:mainfrom
sipsma:merge-diff

Conversation

@sipsma

@sipsma sipsma commented Mar 10, 2022

Copy link
Copy Markdown
Contributor

Signed-off-by: Erik Sipsma [email protected]

This has some tests, but I also tested it in my WIP branch exploring apko integration. See the commit message on that apko branch for more details on the status there: sipsma@f9f0687

@netlify

netlify Bot commented Mar 10, 2022 •

Copy link
Copy Markdown

@sipsma

sipsma commented Mar 10, 2022

Copy link
Copy Markdown
Contributor Author

Just saw the lint errors, will update when I have time later tonight

@aluzzardi aluzzardi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code LGTM, left a test comment

/cc @shykes for API review

Comment thread tests/tasks/diff/diff.cue
} & {
contents: "foo"
}
verify_diff_bar: dagger.#ReadFile & {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we should also verify that the diff doesn't contain anything from lower: image.output (e.g. /etc/alpine-release)?

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.

Yeah good idea, will update

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.

Done, added verify_no_alpine_base

@gerhard

gerhard commented Mar 11, 2022

Copy link
Copy Markdown
Contributor

This is a nice contribution @sipsma

It would be great to add #Diff & #Merge to the Dagger CUE API docs page after #1758 gets merged. This is what I'm thinking: https://deploy-preview-1758--devel-docs-dagger-io.netlify.app/1213/dagger-cue

image

@jlongtine jlongtine left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks great! Thanks for the contribution, @sipsma! I'm excited to have these buildkit primitives in dagger!

@sipsma

sipsma commented Mar 13, 2022

Copy link
Copy Markdown
Contributor Author

@gerhard @jlongtine Thanks! And I'm happy to update those docs once the other PR is merged. I am subscribed to the thread for that PR now but if I miss it being merged don't hesitate to ping me here or in the discord

@shykes shykes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you for the contribution! I can’t wait what the community builds with this, it’s powerful stuff.

@aluzzardi
aluzzardi merged commit 82de3d4 into dagger:main Mar 15, 2022
@aluzzardi
aluzzardi deleted the merge-diff branch March 15, 2022 05: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.

5 participants