#short name + remote modules

1 messages ยท Page 1 of 1 (latest)

barren quiver
#

the most basic repro on my end. I must be doing something wrong?

dagger init
dagger install github.com/shykes/daggerverse/hello
dagger -m hello functions
toxic flame
#

aha can you try v0.9.10

barren quiver
#

I'm on 0.9.10 ๐Ÿ™‚

toxic flame
#

ah never mind ๐Ÿ™‚

barren quiver
#

am I getting the syntax wrong?

toxic flame
#

i don't ever remember adding support for this if i'm honest

#

that said, i might have missed this

barren quiver
#

maybe we collectively manifested it lol

half wraith
#

Erik added it (or at least planned to)

barren quiver
#

@winter hatch did you have this working?

winter hatch
#

Oh, wait, it created a dir structure with that path:

lt -a
.
โ”œโ”€โ”€ github.com
โ”‚  โ””โ”€โ”€ shykes
โ”‚     โ””โ”€โ”€ daggerverse
โ”‚        โ””โ”€โ”€ hello@ac880927d5368eaf2e5d94450e587732753df1a6
โ””โ”€โ”€ dagger.json

Wrong reference format?

barren quiver
#

Woah... you're right... why did that happen

#

confirmed the shortname stuff works fine for local mods

winter hatch
#

This is ok:

dagger -m github.com/shykes/daggerverse/hello@ac880927d5368eaf2e5d94450e587732753df1a6 functions

So must be a bug.

barren quiver
#

opening issue to track it

toxic flame
#

today is the day of issues lol ๐Ÿ˜„

barren quiver
#

oh wait so is dagger install for remote modules bugged???

#

based on this I want to say yes?

#

oh it only happens when you try to reference the short name of the remote module, not on install

toxic flame
barren quiver
toxic flame
#

another for my collection

barren quiver
#

short name + remote modules

barren quiver
half wraith
#

@barren quiver is it actually voluntary to have that weird vendored directory in the module dir?

barren quiver
half wraith
#

Right that's what I thought too. Different bug than the one you're fixing? Or it's one and the same?

barren quiver
#

It should be resolved as part of my fix, let me triple check

#

confirmed

#

super nice UX now

half wraith
#

sweet!

#

that's what we were aiming for ๐Ÿ™‚

#

Also you get a guaranteed version lock

barren quiver
#

The dream!

#

It's like a supercharged package.json devDependencies

half wraith
#

Next step is to let you install in your home directory if you're outside a module

#

So then dagger install always works

barren quiver
#

Yeah I like that. Still imagine the primary use case is a module definition at a project root so dagger "just works" almost like direnv

#

Related to this + the crawling discussion - would be kind of cool to have a versioned dagger-in-dagger for modules so that it works no matter what your installed cli is. The last chance to mess up compatibility between different dev's machines