You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make sdk field in ModuleConfig a ModuleConfigDependency #9156
The work for pinging dependencies in #8587 didn't also apply to external SDKs. We should make the single sdk field into a ModuleConfigDependency, so that it can have both a source and a pin.
However, it probably doesn't make sense to also have the name field - we could just have it be a dangling field, or could maybe update name to be omitempty in this case if we like.
instead of pursuing the SDK field as ModuleConfigDependency, we decided to have a custom struct for it as SDK and dependencies are initialized differently in the code.
The source will store what is stored in "sdk" field today. so e.g. go or github.com/dagger/dagger/php etc.
The pin will (when it is supported) store the pinned commit
The env variable will contain a map (may change to a different structure) of key/value which will be injected automatically during code-generation and runtime. This will help us with configuring env variables like "GOPRIVATE" as an example.
The existing modules will work as usual, but when user will do "dagger develop", we will change the sdk from a string to the new struct automatically.
Activity
rajatjindal commentedon Jan 31, 2025
instead of pursuing the SDK field as
ModuleConfigDependency, we decided to have a custom struct for it as SDK and dependencies are initialized differently in the code.goorgithub.com/dagger/dagger/phpetc.The existing modules will work as usual, but when user will do "dagger develop", we will change the sdk from a string to the new struct automatically.