#Does sdk support File core type as remote url too?
1 messages · Page 1 of 1 (latest)
Hey!
If the remote url is a git repo then yes you can pass in a file.
Here is an example
dagger call my-function --file-url https://github.com/jpadams/azure-for-dagger#main:main.go
In this case:
REPO: https://github.com/jpadams/azure-for-dagger
BRANCH:
#main
PATH TO FILE:
:main.go
I am going add this to our cookbook since I could not find it there
Remote url is actually from jfrog , so it's not supported?
I don't think so
Is this something that can be taken as a feature request?
Yeah for sure, please feel free to add any request as issues to our main repo!
https://github.com/dagger/dagger
--
@strong garden it feels like this whole section is missing "File arguments"
An engine to run your pipelines in containers. Contribute to dagger/dagger development by creating an account on GitHub.
In the meantime, there is a dag.http method that you may be able to use inside of your function to grab the file that way.
In that case instead of file, you accept a string argument and then pass it along to dag.HTTP
(also can't find a good example in the docs but here the raw graphQL spec: https://docs.dagger.io/api/reference/#query-http)
Thanks @lunar geyser
Ok good catch, I'll add examples for that
@lunar geyser Can you please create an issue and assign to me?