Skip to content

feat(core): add HTTP core API - #3223

Merged
sipsma merged 1 commit into
dagger:cloakfrom
dolanor:add-core-http
Oct 4, 2022
Merged

sipsma merged 1 commit into
dagger:cloakfrom
dolanor:add-core-http

Conversation

@dolanor

@dolanor dolanor commented Oct 4, 2022

Copy link
Copy Markdown
Contributor

fixes #3181

Signed-off-by: Tanguy ⧓ Herrmann <[email protected]>
@dolanor
dolanor requested review from aluzzardi, sipsma and vito October 4, 2022 02:17
@netlify

netlify Bot commented Oct 4, 2022

Copy link
Copy Markdown

👷 Deploy request for cloak-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 72ec360

@dolanor dolanor changed the title feat(core): add HTTP query feat(core): add HTTP core API Oct 4, 2022

@sipsma sipsma 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.

Looks great! Just want to hear back about the API simplification, but otherwise good to merge

Comment thread core/schema/http.graphqls
"An HTTP remote endpoint"
type HTTPRemote {
"Download a tar-encoded directory from this remote"
directory: Directory!

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.

cc @shykes we simplified the API here to just return a File only since it wasn't clear how to turn an arbitrary URL into a full directory, let us know if we were misremembering the intention here

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.

Yes that's fine. For some reason I thought llb.Http supported unpacking a tar archive, and setting llb state to the resulting tree. But now I think I may have imagined that... Adding it to the "one day maybe" bucket. Thanks!

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.

That reminds me something as well.
I wonder if it wasn't some limitation we had with our CUE API?

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.

I believe Dockerfile's ADD statement has behavior like this, could be the source of the memory? It's implemented on a higher-level than LLB, so we can't use it for free here.

@vito vito 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.

Looks great, thanks for picking this up!

I think we should support validating checksums, but I've split that out into #3228 since we need to decide on the API.

@sipsma
sipsma merged commit 8e2944c into dagger:cloak Oct 4, 2022
@dolanor dolanor mentioned this pull request Oct 14, 2022
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.

4 participants