You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The module mymodule was not in $(pwd), but it is next to the symlink destination. The execution context I used to repro. was vcode/... vcode/.. doesn't have the mymodule module, but still compiles just fine.
I think certain build tool, like Google's Bazel, uses symlink to simulate a hermetic environment for a build target in a multi-project or multi-language monorepo. So it'll be useful to be symlink-agnostic maybe via an opt-out mechanism.
V version: v0.1.28
OS: MacOS X
What did you do?
Then create a symlink outside of code folder, and compile the symlink'ed V file
What did you expect to see?
The compiler should error out that the module is not found because the module dependency is not directly there.
What did you see instead?
./code
prints "Hello World" just fine, which means the compiler follows the symlink of the file, and then compiles the symlinked code.I think we should read the symlink contents as is and not take into account the path as a result of a symbolic link.
The text was updated successfully, but these errors were encountered: