Skip to content

Running "bazel run @nodejs//:yarn" twice fails with unlink error #652

Closed

Description

@meteorcloudy

🐞 bug report

Is this a regression?

Yes, the previous version in which this bug was not present was:
Running bazel run @nodejs//:yarn multiple times works.

Description

Running bazel run @nodejs//:yarn the second time will get:

$ node delete_build_files.js
fs.js:115
    throw err;
    ^

Error: ENOENT: no such file or directory, unlink 'node_modules/rxjs/src/webSocket/BUILD.bazel'
    at Object.unlinkSync (fs.js:949:3)
    at Object.<anonymous> (/usr/local/google/home/pcloudy/workspace/rules_nodejs/internal/npm_install/test/package/delete_build_files.js:22:6)
    at Module._compile (internal/modules/cjs/loader.js:688:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
    at Module.load (internal/modules/cjs/loader.js:598:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
    at Function.Module._load (internal/modules/cjs/loader.js:529:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
    at startup (internal/bootstrap/node.js:285:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
error Command failed with exit code 1.

🔬 Minimal Reproduction

git pull
bazel run @nodejs//:yarn
bazel run @nodejs//:yarn

🌍 Your Environment

Operating System:

  
Windows, Ubuntu
  

Output of bazel version:

  
0.24.1
  

Anything else relevant?

Culprit is 7c09469

@alexeagle @kyliau

Activity

  1. added a commit that references this issue on Apr 4, 2019
  2. added a commit that references this issue on Apr 6, 2019
  3. added a commit that references this issue on Jun 6, 2019
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