-
Notifications
You must be signed in to change notification settings - Fork 29.8k
[flutter_tools] fix pm serve ipv6 linklocal addr issue #55664
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
Conversation
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
|
log before applying the patch log after applying the patch (still broken by this problem has been solved) |
|
FWIW, I patched this change to prevent an infra failure. I don't have the full context, but we can't simply revert the change otherwise our fuchsia integration test will break again. |
|
@jonahwilliams Are there any chance your integration test fail because you are running in Docker? |
|
TBH I don't really understand this integration test very well, but it did start working again after I removed the information after the Its a bit later here, but I'll cc some other folks on this PRs we can figure out the best solution. |
|
Okay I think I understand it now. Binding the ipv6 linklocal address on host require the unstripped address that include the interface name, but amber_ctl cannot accept the url with the interface. My proposed solution here is to add a interfaceStrippedUrl getter to be used by amber. |
|
@jonahwilliams btw can you tell me how do I switch to different tiles in the fuchsia emulator? After applying this patch, it seems that flutter run is working now. However, there are still no application launching in the fuchsia emulator. Do you guys uses the workstation.qemu-x64-release or qemu-x64 flavour for using flutter run in the emulator? I read that you can do Select a Tab by Alt+F2, but I my Ubuntu environment all these keys are catched by the OS and perform tab switching on my desktop environment instead. What is the best way to do that? Actually I am working on a toolchain to allow Flutter development on Fuchsia here https://github.com/michaellee8/flutter_fuchsia_toolchain |
|
After using the patch I can do |
…ption" This reverts commit 6613a3f
|
|
Thank you for your input but I don't really have access to that link. Can you tell me if there are no replacement yet? Or can you tell me more information about the replacement so that I can know when it lands by monitoring the commit history? |
|
I have rewrote the patch to avoid unnecessary changes. Tested to work with flutter run locally on my Ubuntu machine. Please see if it can be merged. |
|
It looks like the test are passing after I modified it reflect my changes. It should be ok to merge now. |
Description
the patch from c5554cd removed the trailing information from the ipv6 addr, which is actually required for binding an ipv6 linklocal address in golang https://golang.org/pkg/net/#Dial. This patch reverts the changes that stripped out the require information, as well as reverting the change that escaped the % sign that breaks go's ipv6 addr resolution mechanism.
Related Issues
It is a trivial change so I didn't create an issue.
Tests
I added the following tests:
No test is included currently since the related part of the source is being actively changed.
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]). This will ensure a smooth and quick review process.///).flutter analyze --flutter-repo) does not report any problems on my PR.Breaking Change
Did any tests fail when you ran them? Please read Handling breaking changes.