#Complex Default Values

1 messages · Page 1 of 1 (latest)

rough spire
#

I wondered how I can make this code work, where +default="./" is mapped to a Directory and not a string.

func (m *HarborCli) Build(
    ctx context.Context,
    // +optional
    // +default="./"
    sourceDir *dagger.Directory,
) *dagger.Directory {

scarlet fern
#

aha

#

you'll be able to do this with defaultPath in the future

rough spire
#

I guess there is no workaround for that in the meantime?