pub: symlinks within the project confused it #492
Labels
contributions-welcome
Contributions welcome to help resolve this (the resolution is expected to be clear from the issue)
P3
A lower priority bug or feature request
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
<img src="https://avatars.githubusercontent.com/u/1081711?v=3" align="left" width="96" height="96"hspace="10"> Issue by jmesserly
Originally opened as dart-lang/sdk#9418
I hit an interesting case where Pub's "packages" symlinks get confused. Consider this folder structure:
web_ui/
example/
test/data/input
example -> ../../../example
In this case, you end up with a packages symlink like this:
web_ui
example/
packages -> ../../../../../../packages
Basically, the number of ".." gets doubled because it's taking into account the relative symlink in "test/data/input"
Probably, you need to normalize the directory path relative to the directory containing the pubspec, before computing the relative symlink path for "packages"
BTW: this is not high priority--I was already in the process of fixing web_ui to not require symlinks to itself for tests. So I can unblock us on the web_ui side.
The text was updated successfully, but these errors were encountered: