Skip to content

node-tap shouldn't use graceful-fs by default #85

Closed

Description

@othiym23

Because tap uses glob, as a byproduct of loading the glob module, graceful-fs's polyfills are patched onto fs globally. Among other things, this means that fs.chown() starts swallowing EPERM. Reasonable people may disagree about the usefulness of this error when running as a non-privileged user (when chown is never going to work, at least on OS X), but the silent failure was surprising and cost me an hour or two of debugging and led me to believe the problem was in Node itself. Is there a way to use graceful-fs in glob without poisoning the fs module for tap users?

Activity

  1. isaacs commented on Jul 23, 2013

    @isaacs
    Member

    There's no way to make graceful-fs work without monkey-patching. I've spent the last year dealing with issues around this.

    You can do npm install tap --no-optional to prevent the installation of glob's optional dep on graceful-fs. Probably a better idea is just to not have glob use graceful-fs.

  2. added a commit that references this issue on Jul 23, 2013
  3. added a commit that references this issue on Sep 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions