I'd appreciate some clarification on an issue I'm facing right now.
I have an Enum defined like:
@dagger.enum_type
class Env(dagger.Enum):
"""
Environment the project will be run in
"""
DEV = 'DEV', 'foo'
INT = 'INT', 'foo'
TEST = (
'TEST',
'foo',
)
( I've shortened the descriptions )
I'm trying to have the default arguments like:
@function
async def test_func(
self,
src: Annotated[dagger.Directory, Doc('Project root directory')],
env: Env = Env.DEV,
) -> SomeCustomType
but whenever I call the test_func without specifying env I get an error like:
Error: response from query: input: workspace.testFunc resolve: failed to convert arg "env": invalid enum value "".
I started running into this today, I could swear it worked like expected a day or two ago.
I'm running dagger version 0.12.
Is this simply not possible or am I missing something?