rdmd --exclude does not understand the new package.d format, one must use:
rdmd --exclude=module1.package
...instead of the more straightforward:
rdmd --exclude=module1
rdmd should probaby become aware of package.d and permit the latter.
Comment #1 by dlang-bugzilla — 2017-06-25T16:25:56Z
Then there would be no way to distinguish excluding just the package.d module vs. the entire package.
Exclusions work by looking at dmd's -v output (import lines, specifically). Since rdmd isn't really aware of how module names are resolved to file names, it probably can't reliably add the implicit .package suffix.
Anyway, I don't think this is a problem on its own; we can just say that rdmd is interpreting module names as they appear in the module statement, and not the import statement. I'll close this for now, but if you have a use case for the proposed behaviour, feel free to reopen.
Comment #2 by timothee.cour2 — 2017-12-07T06:08:27Z