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

use relative path for process/browser.js #32

Closed
wants to merge 1 commit into from

Conversation

Trott
Copy link

@Trott Trott commented May 3, 2014

Trying to achieve the same goal as #31 of omitting absolute paths from the output file that could reveal more than one wants about the builder's setup (e.g., the username they use to login on their machine).

  • Not quite the one-line change @substack suggested it might be, but maybe three lines is close enough?
  • Only tested with npm test and by using it on my own projects, so not sure if I'm missing use cases?
  • Removal of whitespace from empty lines courtesy of my editor. Happy to resubmit without the whitespace removal if, you know, even minor stuff like that should be omitted as unrelated.

@ghost
Copy link

ghost commented May 4, 2014

This is a really spammy patch with the whitespace. I didn't want to merge #31 because it didn't have an associated failing test case. I really don't want to just take people's word for it that their patch fixes an issue, I want failing tests.

@ghost ghost closed this May 4, 2014
@Trott
Copy link
Author

Trott commented May 4, 2014

I've added a test (that fails for current master, of course) and restored the original white space.

Diff to master of version with a simple test: https://github.com/Trott/insert-module-globals/compare/relative-path-take-2-er-3?expand=1

If that test is Doing It Wrong, I also did a Probably-Doing-It-Wrong-Too attempt to emulate the style of the pre-existing tests. Diff vs. master: https://github.com/Trott/insert-module-globals/compare/relative-path?expand=1

Would you consider either of these? Or am I just wasting everyone's time and I really need to stop right now?

@ghost
Copy link

ghost commented May 4, 2014

Thanks for the test! That is really helpful in verifying that these patches behave as advertised. Is it possible to get the patch without the whitespace spam in the diffs?

@Trott
Copy link
Author

Trott commented May 4, 2014

Sure. I'll submit it as a different PR. Hope that's OK.

This pull request was closed.
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.

1 participant