-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
code_transformer pkg: unable to handle when dart exe is a symlink #20376
Comments
Looks like calling something like: var file = new File(result.stdout.trim()); Or similar might do the trick? |
FWIW this affects the zengen package on pub, which uses code_transformers. At least, it affects: code_transformers + dart sdk installed by homebrew + mac. |
This code is a complete (and extremely unfortunate) hack around 16994. Pub just recently added a pseudo-package '$sdk' which it sounds like we can use, though this will take a chunk of refactoring to change the resolver's use of dart sources from proxies of file-based sources to be asset-based sources. Though it may clean some stuff up by having everything be asset-based. |
Might also let it work cross-platform, too. Another benefit. :) |
We added the workaround to resolve the symlink for now in code_transformers 0.2.3+2 (see Added Fixed label. |
Thanks very much! |
This issue has been moved to dart-archive/code_transformers#20. |
Consider this case:
/usr/local/bin/dart ==> /usr/local/Cellar/dart/1.5.3/bin/dart ==> /usr/local/Cellar/dart/1.5.3/libexec/bin/dart
This is what homebrew does.
The code in dartSdkDirectory assumed that
which dart
points to the physical location ofdart
.The text was updated successfully, but these errors were encountered: