diff --git a/bin/nyc.js b/bin/nyc.js index 97ef50b67..95d09c65a 100755 --- a/bin/nyc.js +++ b/bin/nyc.js @@ -41,9 +41,7 @@ if ([ // https://github.com/istanbuljs/nyc/issues/951 SPAWN_WRAP_SHIM_ROOT: process.env.SPAWN_WRAP_SHIM_ROOT || process.env.XDG_CACHE_HOME || require('os').homedir(), NYC_CONFIG: JSON.stringify(argv), - NYC_CWD: process.cwd(), - NYC_ROOT_ID: nyc.rootId, - NYC_INSTRUMENTER: argv.instrumenter + NYC_CWD: process.cwd() } if (argv['babel-cache'] === false) { diff --git a/bin/wrap.js b/bin/wrap.js index 4e64c2b5f..ee2937d97 100644 --- a/bin/wrap.js +++ b/bin/wrap.js @@ -8,8 +8,7 @@ config.isChildProcess = true config._processInfo = { pid: process.pid, ppid: process.ppid, - parent: process.env.NYC_PROCESS_ID || null, - root: process.env.NYC_ROOT_ID + parent: process.env.NYC_PROCESS_ID || null } if (process.env.NYC_PROCESSINFO_EXTERNAL_ID) { config._processInfo.externalId = process.env.NYC_PROCESSINFO_EXTERNAL_ID diff --git a/index.js b/index.js index acf66ff19..a93f9969c 100755 --- a/index.js +++ b/index.js @@ -21,7 +21,6 @@ const rimraf = require('rimraf') const SourceMaps = require('./lib/source-maps') const testExclude = require('test-exclude') const util = require('util') -const uuid = require('uuid/v4') const debugLog = util.debuglog('nyc') @@ -89,7 +88,6 @@ class NYC { this.fakeRequire = null this.processInfo = new ProcessInfo(config && config._processInfo) - this.rootId = this.processInfo.root || uuid() this.hashCache = {} } diff --git a/lib/process.js b/lib/process.js index 3a8cab8f7..37b1e91dc 100644 --- a/lib/process.js +++ b/lib/process.js @@ -13,7 +13,6 @@ function ProcessInfo (defaults) { this.cwd = process.cwd() this.time = Date.now() this.ppid = null - this.root = null this.coverageFilename = null for (var key in defaults) { diff --git a/test/processinfo.js b/test/processinfo.js index 9fbf0352b..f60d60d3c 100644 --- a/test/processinfo.js +++ b/test/processinfo.js @@ -65,7 +65,6 @@ t.test('validate the created processinfo data', t => { execArgv: [], cwd: fixturesCLI, time: Number, - root: /^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/, coverageFilename: resolve(fixturesCLI, tmp, f), files: [ resolvedJS ] }) @@ -86,7 +85,6 @@ t.test('check out the index', t => { }, externalIds: { blorp: { - root: u, children: [ u, u, u, u, u, u, u, u ] } }