Repository navigation
feat: skip namespacing when already prefixed - #6258
Conversation
sipsma
left a comment
There was a problem hiding this comment.
Just need to delete debugging println before merge, otherwise LGTM!
There was a problem hiding this comment.
oop forgot about this one lol 😱
Previously, we skipped namespacing if the object was named the same as the module. However, with this patch we can now additionally skip namespacing if the object if prefixed with the namespace. Signed-off-by: Justin Chadwell <[email protected]>
ab3aa99 to
a8b54e2
Compare
|
@helderco curious if you've seen this python flake before: https://github.com/dagger/dagger/actions/runs/7194438979/job/19594973142#step:5:3880 (not a blocker for this PR, it just happened here last) I've seen it across a few PRs (and started happening recently), but it always seems to disappear with a re-run. |
Yeah, I've seen that but put it back of mind. It's the garbage collector in automatic provisioning during a stress test: I'll see if I can replicate locally and fix it. |
This goes some way to fixing #6071 (@sipsma up to you if you want to leave it open for tracking the subpackage aspect, or splitting up core)
This allows a module "foo" to define it's own "FooContainer" type that won't be additionally namespaced into "FooFooContainer".
Previously, we skipped namespacing if the object was named the same as the module.
However, with this patch we can now additionally skip namespacing if the object if prefixed with the namespace.