D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 22952 - Compiler fails to find package.d modules via -mv map
Summary: Compiler fails to find package.d modules via -mv map
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-28 18:43 UTC by Max Samukha
Modified: 2022-10-04 02:16 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Max Samukha 2022-03-28 18:43:20 UTC
To reproduce, create this source tree:

  libsrc\
     package.d
  main.d


The contents of libsrc\package.d:

  module lib;


The contents of main.d:

  module main;
  import lib;

  void main() {}


Map 'lib' package to 'libsrc' folder and compile:

  dmd -i -mv=lib=libsrc main.d

main.d(3): Error: module `lib` is in file 'lib.d' which cannot be read
Comment 1 RazvanN 2022-10-04 02:16:20 UTC
Fixed by: https://github.com/dlang/dmd/pull/14501