#Return another module's type · Issue #85...
1 messages · Page 1 of 1 (latest)
Cannot return -- but is that also true for cannot consume?
what I wish I could do would be like dagger call m1.f1 m2.f2
I think it's cannot return or consume (I'll update the issue)
if you try doing it you'll get a very explicit error message at module load time
👀 trying now .. one question is how do i do secrets in the shell?
"pr" cannot reference external type from dependency module "github"
You want to pass secret arguments to a function from the shell?
I guess for this I need to refactor anyway, so i won't need to use the shell, but I could see wanting to call this function which requires a secret from the shell for interactivity
the answer is the same in dagger shell or dagger call: you can pass the secret reference as a URL, and the CLI will load the secret for you. Supported URLs schemes are:
op://for 1passwordvault://for hashicorp vaultenv://for env variablesfile://for contents of a filecmd://for output of executing a command
🧐 why wasn't this working for me earlier
99% chance it was just me doing something dumb