Stream: t-lang

Topic: Fix the path attribute on mod items.

Charles Lew (May 01 2020 at 03:52, on Zulip):

So there're three "shape"s for a module: 1. single mode: 2. headless mode: file/ + <submodules> 3. + file/ <submodules>.

The path attribute supports the traditional two modes(1st+2nd mode). When you specify a file using path. It acts as if that file is the, and assumes its submodules live by the side of it. However if your project is using 2018 edition recommended mode (1st+3rd mode), that will become a mess, as the files living by the side it is its sibling modules, not submodules.

Last update: Jan 22 2021 at 11:45UTC