Skip to content
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

Only load bonjour when needed #958

Merged
merged 3 commits into from Jul 10, 2017
Merged

Only load bonjour when needed #958

merged 3 commits into from Jul 10, 2017

Conversation

joelface
Copy link
Contributor

What kind of change does this PR introduce?
Bugfix for #955

Did you add or update the examples/?
n/a

Summary
Fixes #955 so WDS will work again on Windows 10 Bash (as long as the --bonjour option isn't specified).

Does this PR introduce a breaking change?
No

Bonjour doesn't currently work on Windows 10's Bash, so let's not load
it if we don't have to.
@jsf-clabot
Copy link

jsf-clabot commented Jun 24, 2017

CLA assistant check
All committers have signed the CLA.

@codecov
Copy link

codecov bot commented Jun 24, 2017

Codecov Report

Merging #958 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #958   +/-   ##
=======================================
  Coverage   72.13%   72.13%           
=======================================
  Files           4        4           
  Lines         463      463           
  Branches      139      139           
=======================================
  Hits          334      334           
  Misses        129      129

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e5b6202...de11014. Read the comment docs.

@simnalamburt
Copy link

I tested it in my local WSL and it worked perfectly.

@rifflock
Copy link

rifflock commented Jul 1, 2017

Is this scheduled to be merged at any point? I'm currently using the workaround (which needs to be reimplemented after every npm install)

@simnalamburt
Copy link

simnalamburt commented Jul 1, 2017

Dear maintainers. If you're concerned about the coding style, let's do it like this

@@ -8,7 +8,7 @@ const net = require("net");
 const portfinder = require("portfinder");
 const addDevServerEntrypoints = require("../lib/util/addDevServerEntrypoints");
 const createDomain = require("../lib/util/createDomain");
-const bonjour = require("bonjour")();
+const Bonjour = require("bonjour");

 // Local version replaces global one
 try {
@@ -455,6 +455,7 @@ function reportReadiness(uri, options) {
 }

 function broadcastZeroconf(options) {
+       const bonjour = Bonjour();
        bonjour.publish({
                name: "Webpack Dev Server",
                port: options.port,
Reference

@andybarron
Copy link

Anything blocking this?

@drazisil
Copy link

drazisil commented Jul 3, 2017

It looks like @joelface needs to rebase. I'm not sure if that's blocking anything, but it's an issue per GitHub's PR UI that would prevent an easy merge.

@joelface
Copy link
Contributor Author

joelface commented Jul 3, 2017

@drazisil Taken care of.

I'm happy to make any changes necessary to get this merged in.

@joelface joelface closed this Jul 3, 2017
@joelface joelface reopened this Jul 3, 2017
@drazisil
Copy link

drazisil commented Jul 3, 2017

@SpaceK33z Can you or another maintainer take a look at this PR?

It's somewhat blocking for Windows programmers, as npm/yarn install undoes the workaround each time.
Thank you in advance, and please let us know if anything else is needed.

@mredbishop
Copy link

Is this about to be merged in?

@shellscape
Copy link
Contributor

folks, please try to hold off on the multiple comments asking about merge status and pinging contributors. it's awesome that you're all enthusiastic! but unfortunately it only serves to clutter the PR conversation and it's poor form. A much better way to go would be to add your reaction to the original post for this PR. maintainers, contributors, and admins will get to user submissions - webpack is a great org and makes sure that happens - but it's not our full time gig, and rest assured we see all of the notifications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows 10 Bash on Windows Error: addMembership EINVAL
8 participants