-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Get rid of DART_SDK in pub #15019
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
Comments
Added Started label. |
Added Fixed label. |
I'm using this variable in DartVS s a way to find the SDK; it was nice that you'd already been using it! In the next version, we'll automatically download and unzip the latest SDK if it's not set, but this variable remains as a way to override that (eg. to use Dev Channel or an old version). Are users going to be educated that they shouldn't ever set this; or does our use if it seem like a valid way of achieving what we want? |
This comment was originally written by @zoechi see also the discussion at SO http://stackoverflow.com/questions/26408682 |
This bug is specific to pub's use of DART_SDK. Pub used to require and read that even though pub itself is in the SDK. Now, pub just looks in the directory containing itself to find the SDK so it doesn't need this. This doesn't mean users can't set a DART_SDK environment variable and use it. It's just that pub itself doesn't need it anymore. |
This issue has been moved to dart-lang/pub#715. |
Pub uses that environment variable just for a couple of pub tests so that we can make sure we can parse VERSION files correctly.
If an end user sets it, though, it is very unlikely to do what they want. We should remove it entirely (and come up with a different way to test that parsing code), or at least rename it to something more specific.
The text was updated successfully, but these errors were encountered: