This example tests resource path resolution across Bazel module boundaries when using resource_strip_prefix.
When a target in one Bazel module depends on a library in an external Bazel module that has resources with a custom resource_strip_prefix, the resource paths need to be correctly resolved.
nested_module_resources/ # Main module
├── MODULE.bazel # bazel_dep(name = "nested")
├── Main.kt # Calls @nested//:printer
└── nested/ # SEPARATE BAZEL MODULE
├── MODULE.bazel # module(name = "nested")
├── Printer.kt
├── BUILD.bazel # resource_strip_prefix = "resourcez"
└── resourcez/
└── resource.txt
Key Point: nested/ is a separate Bazel module with its own MODULE.bazel, not just a subdirectory.
Without the fix in PR #1390, resource paths from external modules included the module path prefix, causing the strip prefix check to fail:
Error in fail: Resource file ../nested+/resourcez/resource.txt is not under the specified prefix to strip resourcez
../nested+/resourcez/resource.txtresourcez../nested+/resourcez/resource.txt doesn't start with resourcezError in fail: Resource file nested/resourcez/resource.txt is not under the specified prefix to strip resourcez
nested/resourcez/resource.txtresourceznested/resourcez/resource.txt doesn't start with resourcez