#Return another module's type · Issue #85...

1 messages · Page 1 of 1 (latest)

willow bramble
#

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

modern idol
#

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

willow bramble
#

👀 trying now .. one question is how do i do secrets in the shell?

#

"pr" cannot reference external type from dependency module "github"

modern idol
willow bramble
#

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

modern idol
#

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 1password
  • vault:// for hashicorp vault
  • env:// for env variables
  • file:// for contents of a file
  • cmd:// for output of executing a command
willow bramble
#

🧐 why wasn't this working for me earlier

willow bramble
#

99% chance it was just me doing something dumb