#Error: unknown command export

1 messages · Page 1 of 1 (latest)

barren cave
#

Hi All

I am recently tinkering around with dagger to see if it would work great for zitadels ci needs 😁

ATM I am struggling with a weird error when calling dagger call build --directory=. export --path=./hodor

This invokes a go function here https://github.com/zitadel/zitadel/blob/dagger/ci/main.go which later invokes a node funtion here https://github.com/zitadel/zitadel/blob/dagger/ci/console/src/index.ts

I could have sworn that this command worked at least one time but now all I get is the error in the screenshot "Error: unknown command "export" for "dagger call build"

Version is 0.11.8 and is use go and node sdks.

Maybe somebody spots what I am doing wrong 🙈

GitHub

ZITADEL - Identity infrastructure, simplified for you. - zitadel/zitadel

GitHub

ZITADEL - Identity infrastructure, simplified for you. - zitadel/zitadel

hybrid vapor
#

can you run dagger call build --directory=. --help?

#

I think the issue is that your function isn't actually returning anything - you need to return a Directory to be able to export it

#

the ts example looks right to me - the go one needs to have a (Directory, error) return type I think

spiral patio
#

Yes, that's what I see too 🙂

barren cave
#

You are both right this worked... In my personal wisdom I refactored that away while testing something else 😂