Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

On Windows in Node 0.11.13 path.resolve causes files to be re-evaluated on second require #7806

Closed
@mgol

Description

@mgol
  1. Install Node 0.11.13 on Windows 8.1
  2. Checkout https://github.com/mzgol/grunt-check-dependencies
  3. Run npm test

Effect: https://ci.appveyor.com/project/mzgol/grunt-check-dependencies/build/3/job/v5ik5b0f0b7nui91

This is because in this line:
https://github.com/mzgol/grunt-check-dependencies/blob/b904397b9ffc459e8a175d0026bd4063eb1f6676/test/spec.js#L37
grunt.config(['checkDependencies', 'ok', 'options']) returns undefined. grunt.config() in this place returns an empty object.

It works fine on OS X (and Linux, as seen in Travis) in both Node 0.10.29 and 0.11.13 and on Windows 8.1 on Node 0.10.29.

I don't currently have a convenient Windows setup to try to narrow the issue down but it seems there's a bug in this specific configuration.

Reported originally as gruntjs/grunt#1166

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions