#dagger functions is failing

1 messages · Page 1 of 1 (latest)

odd tiger
#

I just did 'dagger init' on a repo, and then ran 'dagger functions' and this happened 🤔

terse gust
lone yacht
#

silent ping to @opal haven as it might be related to the SDK coexistence use-case. @odd tiger can you try --source .dagger when doing dagger init to see if you're getting the same error?

opal haven
#

Yeah, this sounds like you tried to dagger init on a directory with an existing project (flask) so Dagger's confused because you can create a module's files before dagger init so the SDK doesn't know if it's that or another existing project. This is realated to https://github.com/dagger/dagger/issues/8123.

odd tiger
#

Hmmmm

#

It worked OK before

#

Then I deleted the dagger DIR

#

Then I re ran dagger init

#

And it shit itself

#

@opal haven @lone yacht

opal haven
#

@odd tiger, what does your dagger init look like? You deleted dagger or .dagger? Did you leave the dagger.json lying around?

cd flask_app
dagger init --sdk=python --source=.dagger
dagger functions

If you still run into issues, please share the full commands you're using.

odd tiger
#

Aye. I'll take a look