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.
var file = new File(result.stdout.trim());
// check if file is a symlink
var realLocation = file.resolveSymbolicLinksSync();
var sdkDir = path.dirname(path.dirname(reloadLocation));
if (isSdkDir(sdkDir)) return sdkDir;
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.