jsii icon indicating copy to clipboard operation
jsii copied to clipboard

Go: submodules with same name are not resolving imports correctly in pacmak

Open mrgrain opened this issue 3 months ago • 0 comments

Describe the bug

If I have multiple submodules that share the same last part, e.g.

asm.service
asm.interfaces.service
asm.mixins.service

And the packages depend on each other, e.g. asm.service is using asm.interfaces.service, then the bindings generated by pacmak resolve these imports incorrectly.

Specifically inside asm.service, when pacmak encounters a type from asm.interfaces.service, it thinks that the type is form the same package and doesn't prefix the import. It does however correctly add the require statement.

Regression Issue

  • [ ] Select this option if this issue appears to be a regression.

Expected Behavior

Bindings should correctly import from the package.

Current Behavior

Compile error.

Reproduction Steps

see above

Possible Solution

No response

Additional Information/Context

No response

SDK version used

any

Environment details (OS name and version, etc.)

any

mrgrain avatar Nov 17 '25 12:11 mrgrain