-
Notifications
You must be signed in to change notification settings - Fork 1.7k
pub doesn't support --enable-experiment=non-nullable #41355
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
Moved this issue to the pub repo at dart-lang/pub#2436 |
The way to implement this will be in the SDK wrapper scripts – not in the pub repo. |
Copying over comment from @natebosch in #41403:
|
@kevmoo @natebosch do we have any existing scripts that do something like this? |
Not that I'm aware of. It would likely involve some manual argument iteration and string prefix comparison for |
In bash we can do this with: if [[ "$1" == '--enable-experiment='* ]]; then
VM_OPTIONS+=("$1")
shift;
fi But for note. VM options can already be passed with: |
@sigurdm, is there any reason we use isolates for Also, I can't help but wonder if |
The VM only handles the argument passed with an equals sign. We don't have to worry about any strangeness around spaces, which means we can also probably avoid any concerns about quoting. |
That's a good point, I don't know how snapshots will work with this. |
I got the impression that the In any case, the snapshot concerns gives me reason to pause, and think if perhaps it's better if |
I don't know of the reason.
One option would be to completely drop precompilation (and ignore existing snapshots) if Otherwise we would have to save information about the configuration when the snapshot was created, so we can recreate it the configuration changed. That might be handy for other configuration than just |
I think it used to be fairly significant. I haven't measured in a while.
This seems like a good idea. I think we'd need a way to ask within the runtime whether any experiments are enabled. |
@jonasfj This issue is in the critical path of tech preview. I like to get a ETA on this so I can build a timeline. Thanks! |
Hmm, looking at the Running @franklinyow, hmm, we have a few things to refactor to get this going. But a week or maybe two (given all the holidays coming up). |
Any update on this? |
@sigurdm @jonasfj is dart-lang/pub#2493 still the active PR for this? |
Yes |
How can we enable the experiment on travis? This is an example on travis where I tried adding /cc @kevmoo |
Fixed in 64b761b |
The text was updated successfully, but these errors were encountered: