#env variables from host as default args

1 messages · Page 1 of 1 (latest)

blissful drift
#

Can I somehow pass some env variables from the host to the dagger function?
Something like this (go):

func (m *MyModule) Test(ctx context.Context,
    // +default="env:TEST"
    test string,
) string {
    return test
}
barren drum
# blissful drift Can I somehow pass some env variables from the host to the dagger function? Som...

you can't use the +default pragma for security reasons. There's some work happening here https://github.com/dagger/dagger/pull/9504 which we're fleshing out to allow users having a .env file locally and passing that to the engine. Details are still under discussion but the only way to pass env variables to your function currently is via explicit --my-var env:FOO args

GitHub

This PR is a prototype for native LLM support in Dagger.

New core type: Llm. Represents the state of a LLM - which it turns out fits perfectly in a DAG of immutable states!
Add any Dagger object t...