#Hi, looking some daggerverse modules

1 messages · Page 1 of 1 (latest)

supple mulch
#

There is an upcoming feature that's going to allow to use interfaces.

I doubt it's going to support generics though.

Also, I'm not sure mixing core types with higher (or lower) level concepts is the right path. It increases complexity in the code generator, it would probably be a huge BC break and the benefit would be negligible.

With the new interface support you could accept an interface that is able to install packages in a distro-agnostic way and return a Container with all the necessary packages. That way you can enforce your desired abstraction in your API.

weak smelt
#

Ok, i found https://github.com/dagger/dagger/pull/6254 and https://github.com/dagger/dagger/issues/6365 . I need to understand how it works, thank you.

GitHub

This adds initial support for interfaces: #6213. See that issue for a description of the problems it's solving.
The support here is very much MVP and has a lot of restrictions (mentioned below)...

GitHub

Follow up to #6254 You can't yet use types from the core api like Container/Directory/etc. to implement a given interface due to some internal technical limitations that are better addressed af...