mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-01 00:23:59 +08:00 
			
		
		
		
	fix for check-dist and license failures
This commit is contained in:
		| @@ -1,6 +1,6 @@ | |||||||
| --- | --- | ||||||
| name: "@actions/glob" | name: "@actions/glob" | ||||||
| version: 0.4.0 | version: 0.5.0 | ||||||
| type: npm | type: npm | ||||||
| summary: Actions glob lib | summary: Actions glob lib | ||||||
| homepage: https://github.com/actions/toolkit/tree/main/packages/glob | homepage: https://github.com/actions/toolkit/tree/main/packages/glob | ||||||
							
								
								
									
										133
									
								
								dist/cache-save/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										133
									
								
								dist/cache-save/index.js
									
									
									
									
										vendored
									
									
								
							| @@ -7022,7 +7022,7 @@ function hashFiles(patterns, currentWorkspace = '', options, verbose = false) { | |||||||
|             followSymbolicLinks = options.followSymbolicLinks; |             followSymbolicLinks = options.followSymbolicLinks; | ||||||
|         } |         } | ||||||
|         const globber = yield create(patterns, { followSymbolicLinks }); |         const globber = yield create(patterns, { followSymbolicLinks }); | ||||||
|         return internal_hash_files_1.hashFiles(globber, currentWorkspace, verbose); |         return (0, internal_hash_files_1.hashFiles)(globber, currentWorkspace, verbose); | ||||||
|     }); |     }); | ||||||
| } | } | ||||||
| exports.hashFiles = hashFiles; | exports.hashFiles = hashFiles; | ||||||
| @@ -7037,7 +7037,11 @@ exports.hashFiles = hashFiles; | |||||||
| 
 | 
 | ||||||
| var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||||||
|     if (k2 === undefined) k2 = k; |     if (k2 === undefined) k2 = k; | ||||||
|     Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); |     var desc = Object.getOwnPropertyDescriptor(m, k); | ||||||
|  |     if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||||||
|  |       desc = { enumerable: true, get: function() { return m[k]; } }; | ||||||
|  |     } | ||||||
|  |     Object.defineProperty(o, k2, desc); | ||||||
| }) : (function(o, m, k, k2) { | }) : (function(o, m, k, k2) { | ||||||
|     if (k2 === undefined) k2 = k; |     if (k2 === undefined) k2 = k; | ||||||
|     o[k2] = m[k]; |     o[k2] = m[k]; | ||||||
| @@ -7050,7 +7054,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( | |||||||
| var __importStar = (this && this.__importStar) || function (mod) { | var __importStar = (this && this.__importStar) || function (mod) { | ||||||
|     if (mod && mod.__esModule) return mod; |     if (mod && mod.__esModule) return mod; | ||||||
|     var result = {}; |     var result = {}; | ||||||
|     if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); |     if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||||||
|     __setModuleDefault(result, mod); |     __setModuleDefault(result, mod); | ||||||
|     return result; |     return result; | ||||||
| }; | }; | ||||||
| @@ -7065,7 +7069,8 @@ function getOptions(copy) { | |||||||
|         followSymbolicLinks: true, |         followSymbolicLinks: true, | ||||||
|         implicitDescendants: true, |         implicitDescendants: true, | ||||||
|         matchDirectories: true, |         matchDirectories: true, | ||||||
|         omitBrokenSymbolicLinks: true |         omitBrokenSymbolicLinks: true, | ||||||
|  |         excludeHiddenFiles: false | ||||||
|     }; |     }; | ||||||
|     if (copy) { |     if (copy) { | ||||||
|         if (typeof copy.followSymbolicLinks === 'boolean') { |         if (typeof copy.followSymbolicLinks === 'boolean') { | ||||||
| @@ -7084,6 +7089,10 @@ function getOptions(copy) { | |||||||
|             result.omitBrokenSymbolicLinks = copy.omitBrokenSymbolicLinks; |             result.omitBrokenSymbolicLinks = copy.omitBrokenSymbolicLinks; | ||||||
|             core.debug(`omitBrokenSymbolicLinks '${result.omitBrokenSymbolicLinks}'`); |             core.debug(`omitBrokenSymbolicLinks '${result.omitBrokenSymbolicLinks}'`); | ||||||
|         } |         } | ||||||
|  |         if (typeof copy.excludeHiddenFiles === 'boolean') { | ||||||
|  |             result.excludeHiddenFiles = copy.excludeHiddenFiles; | ||||||
|  |             core.debug(`excludeHiddenFiles '${result.excludeHiddenFiles}'`); | ||||||
|  |         } | ||||||
|     } |     } | ||||||
|     return result; |     return result; | ||||||
| } | } | ||||||
| @@ -7099,7 +7108,11 @@ exports.getOptions = getOptions; | |||||||
| 
 | 
 | ||||||
| var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||||||
|     if (k2 === undefined) k2 = k; |     if (k2 === undefined) k2 = k; | ||||||
|     Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); |     var desc = Object.getOwnPropertyDescriptor(m, k); | ||||||
|  |     if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||||||
|  |       desc = { enumerable: true, get: function() { return m[k]; } }; | ||||||
|  |     } | ||||||
|  |     Object.defineProperty(o, k2, desc); | ||||||
| }) : (function(o, m, k, k2) { | }) : (function(o, m, k, k2) { | ||||||
|     if (k2 === undefined) k2 = k; |     if (k2 === undefined) k2 = k; | ||||||
|     o[k2] = m[k]; |     o[k2] = m[k]; | ||||||
| @@ -7112,7 +7125,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( | |||||||
| var __importStar = (this && this.__importStar) || function (mod) { | var __importStar = (this && this.__importStar) || function (mod) { | ||||||
|     if (mod && mod.__esModule) return mod; |     if (mod && mod.__esModule) return mod; | ||||||
|     var result = {}; |     var result = {}; | ||||||
|     if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); |     if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||||||
|     __setModuleDefault(result, mod); |     __setModuleDefault(result, mod); | ||||||
|     return result; |     return result; | ||||||
| }; | }; | ||||||
| @@ -7166,19 +7179,21 @@ class DefaultGlobber { | |||||||
|         return this.searchPaths.slice(); |         return this.searchPaths.slice(); | ||||||
|     } |     } | ||||||
|     glob() { |     glob() { | ||||||
|         var e_1, _a; |         var _a, e_1, _b, _c; | ||||||
|         return __awaiter(this, void 0, void 0, function* () { |         return __awaiter(this, void 0, void 0, function* () { | ||||||
|             const result = []; |             const result = []; | ||||||
|             try { |             try { | ||||||
|                 for (var _b = __asyncValues(this.globGenerator()), _c; _c = yield _b.next(), !_c.done;) { |                 for (var _d = true, _e = __asyncValues(this.globGenerator()), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) { | ||||||
|                     const itemPath = _c.value; |                     _c = _f.value; | ||||||
|  |                     _d = false; | ||||||
|  |                     const itemPath = _c; | ||||||
|                     result.push(itemPath); |                     result.push(itemPath); | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|             catch (e_1_1) { e_1 = { error: e_1_1 }; } |             catch (e_1_1) { e_1 = { error: e_1_1 }; } | ||||||
|             finally { |             finally { | ||||||
|                 try { |                 try { | ||||||
|                     if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b); |                     if (!_d && !_a && (_b = _e.return)) yield _b.call(_e); | ||||||
|                 } |                 } | ||||||
|                 finally { if (e_1) throw e_1.error; } |                 finally { if (e_1) throw e_1.error; } | ||||||
|             } |             } | ||||||
| @@ -7236,6 +7251,10 @@ class DefaultGlobber { | |||||||
|                 if (!stats) { |                 if (!stats) { | ||||||
|                     continue; |                     continue; | ||||||
|                 } |                 } | ||||||
|  |                 // Hidden file or directory?
 | ||||||
|  |                 if (options.excludeHiddenFiles && path.basename(item.path).match(/^\./)) { | ||||||
|  |                     continue; | ||||||
|  |                 } | ||||||
|                 // Directory
 |                 // Directory
 | ||||||
|                 if (stats.isDirectory()) { |                 if (stats.isDirectory()) { | ||||||
|                     // Matched
 |                     // Matched
 | ||||||
| @@ -7341,7 +7360,11 @@ exports.DefaultGlobber = DefaultGlobber; | |||||||
| 
 | 
 | ||||||
| var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||||||
|     if (k2 === undefined) k2 = k; |     if (k2 === undefined) k2 = k; | ||||||
|     Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); |     var desc = Object.getOwnPropertyDescriptor(m, k); | ||||||
|  |     if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||||||
|  |       desc = { enumerable: true, get: function() { return m[k]; } }; | ||||||
|  |     } | ||||||
|  |     Object.defineProperty(o, k2, desc); | ||||||
| }) : (function(o, m, k, k2) { | }) : (function(o, m, k, k2) { | ||||||
|     if (k2 === undefined) k2 = k; |     if (k2 === undefined) k2 = k; | ||||||
|     o[k2] = m[k]; |     o[k2] = m[k]; | ||||||
| @@ -7354,7 +7377,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( | |||||||
| var __importStar = (this && this.__importStar) || function (mod) { | var __importStar = (this && this.__importStar) || function (mod) { | ||||||
|     if (mod && mod.__esModule) return mod; |     if (mod && mod.__esModule) return mod; | ||||||
|     var result = {}; |     var result = {}; | ||||||
|     if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); |     if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||||||
|     __setModuleDefault(result, mod); |     __setModuleDefault(result, mod); | ||||||
|     return result; |     return result; | ||||||
| }; | }; | ||||||
| @@ -7383,19 +7406,21 @@ const stream = __importStar(__nccwpck_require__(2781)); | |||||||
| const util = __importStar(__nccwpck_require__(3837)); | const util = __importStar(__nccwpck_require__(3837)); | ||||||
| const path = __importStar(__nccwpck_require__(1017)); | const path = __importStar(__nccwpck_require__(1017)); | ||||||
| function hashFiles(globber, currentWorkspace, verbose = false) { | function hashFiles(globber, currentWorkspace, verbose = false) { | ||||||
|     var e_1, _a; |     var _a, e_1, _b, _c; | ||||||
|     var _b; |     var _d; | ||||||
|     return __awaiter(this, void 0, void 0, function* () { |     return __awaiter(this, void 0, void 0, function* () { | ||||||
|         const writeDelegate = verbose ? core.info : core.debug; |         const writeDelegate = verbose ? core.info : core.debug; | ||||||
|         let hasMatch = false; |         let hasMatch = false; | ||||||
|         const githubWorkspace = currentWorkspace |         const githubWorkspace = currentWorkspace | ||||||
|             ? currentWorkspace |             ? currentWorkspace | ||||||
|             : (_b = process.env['GITHUB_WORKSPACE']) !== null && _b !== void 0 ? _b : process.cwd(); |             : (_d = process.env['GITHUB_WORKSPACE']) !== null && _d !== void 0 ? _d : process.cwd(); | ||||||
|         const result = crypto.createHash('sha256'); |         const result = crypto.createHash('sha256'); | ||||||
|         let count = 0; |         let count = 0; | ||||||
|         try { |         try { | ||||||
|             for (var _c = __asyncValues(globber.globGenerator()), _d; _d = yield _c.next(), !_d.done;) { |             for (var _e = true, _f = __asyncValues(globber.globGenerator()), _g; _g = yield _f.next(), _a = _g.done, !_a; _e = true) { | ||||||
|                 const file = _d.value; |                 _c = _g.value; | ||||||
|  |                 _e = false; | ||||||
|  |                 const file = _c; | ||||||
|                 writeDelegate(file); |                 writeDelegate(file); | ||||||
|                 if (!file.startsWith(`${githubWorkspace}${path.sep}`)) { |                 if (!file.startsWith(`${githubWorkspace}${path.sep}`)) { | ||||||
|                     writeDelegate(`Ignore '${file}' since it is not under GITHUB_WORKSPACE.`); |                     writeDelegate(`Ignore '${file}' since it is not under GITHUB_WORKSPACE.`); | ||||||
| @@ -7418,7 +7443,7 @@ function hashFiles(globber, currentWorkspace, verbose = false) { | |||||||
|         catch (e_1_1) { e_1 = { error: e_1_1 }; } |         catch (e_1_1) { e_1 = { error: e_1_1 }; } | ||||||
|         finally { |         finally { | ||||||
|             try { |             try { | ||||||
|                 if (_d && !_d.done && (_a = _c.return)) yield _a.call(_c); |                 if (!_e && !_a && (_b = _f.return)) yield _b.call(_f); | ||||||
|             } |             } | ||||||
|             finally { if (e_1) throw e_1.error; } |             finally { if (e_1) throw e_1.error; } | ||||||
|         } |         } | ||||||
| @@ -7458,7 +7483,7 @@ var MatchKind; | |||||||
|     MatchKind[MatchKind["File"] = 2] = "File"; |     MatchKind[MatchKind["File"] = 2] = "File"; | ||||||
|     /** Matched */ |     /** Matched */ | ||||||
|     MatchKind[MatchKind["All"] = 3] = "All"; |     MatchKind[MatchKind["All"] = 3] = "All"; | ||||||
| })(MatchKind = exports.MatchKind || (exports.MatchKind = {})); | })(MatchKind || (exports.MatchKind = MatchKind = {})); | ||||||
| //# sourceMappingURL=internal-match-kind.js.map
 | //# sourceMappingURL=internal-match-kind.js.map
 | ||||||
| 
 | 
 | ||||||
| /***/ }), | /***/ }), | ||||||
| @@ -7470,7 +7495,11 @@ var MatchKind; | |||||||
| 
 | 
 | ||||||
| var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||||||
|     if (k2 === undefined) k2 = k; |     if (k2 === undefined) k2 = k; | ||||||
|     Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); |     var desc = Object.getOwnPropertyDescriptor(m, k); | ||||||
|  |     if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||||||
|  |       desc = { enumerable: true, get: function() { return m[k]; } }; | ||||||
|  |     } | ||||||
|  |     Object.defineProperty(o, k2, desc); | ||||||
| }) : (function(o, m, k, k2) { | }) : (function(o, m, k, k2) { | ||||||
|     if (k2 === undefined) k2 = k; |     if (k2 === undefined) k2 = k; | ||||||
|     o[k2] = m[k]; |     o[k2] = m[k]; | ||||||
| @@ -7483,7 +7512,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( | |||||||
| var __importStar = (this && this.__importStar) || function (mod) { | var __importStar = (this && this.__importStar) || function (mod) { | ||||||
|     if (mod && mod.__esModule) return mod; |     if (mod && mod.__esModule) return mod; | ||||||
|     var result = {}; |     var result = {}; | ||||||
|     if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); |     if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||||||
|     __setModuleDefault(result, mod); |     __setModuleDefault(result, mod); | ||||||
|     return result; |     return result; | ||||||
| }; | }; | ||||||
| @@ -7533,8 +7562,8 @@ exports.dirname = dirname; | |||||||
|  * or `C:` are expanded based on the current working directory. |  * or `C:` are expanded based on the current working directory. | ||||||
|  */ |  */ | ||||||
| function ensureAbsoluteRoot(root, itemPath) { | function ensureAbsoluteRoot(root, itemPath) { | ||||||
|     assert_1.default(root, `ensureAbsoluteRoot parameter 'root' must not be empty`); |     (0, assert_1.default)(root, `ensureAbsoluteRoot parameter 'root' must not be empty`); | ||||||
|     assert_1.default(itemPath, `ensureAbsoluteRoot parameter 'itemPath' must not be empty`); |     (0, assert_1.default)(itemPath, `ensureAbsoluteRoot parameter 'itemPath' must not be empty`); | ||||||
|     // Already rooted
 |     // Already rooted
 | ||||||
|     if (hasAbsoluteRoot(itemPath)) { |     if (hasAbsoluteRoot(itemPath)) { | ||||||
|         return itemPath; |         return itemPath; | ||||||
| @@ -7544,7 +7573,7 @@ function ensureAbsoluteRoot(root, itemPath) { | |||||||
|         // Check for itemPath like C: or C:foo
 |         // Check for itemPath like C: or C:foo
 | ||||||
|         if (itemPath.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)) { |         if (itemPath.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)) { | ||||||
|             let cwd = process.cwd(); |             let cwd = process.cwd(); | ||||||
|             assert_1.default(cwd.match(/^[A-Z]:\\/i), `Expected current directory to start with an absolute drive root. Actual '${cwd}'`); |             (0, assert_1.default)(cwd.match(/^[A-Z]:\\/i), `Expected current directory to start with an absolute drive root. Actual '${cwd}'`); | ||||||
|             // Drive letter matches cwd? Expand to cwd
 |             // Drive letter matches cwd? Expand to cwd
 | ||||||
|             if (itemPath[0].toUpperCase() === cwd[0].toUpperCase()) { |             if (itemPath[0].toUpperCase() === cwd[0].toUpperCase()) { | ||||||
|                 // Drive only, e.g. C:
 |                 // Drive only, e.g. C:
 | ||||||
| @@ -7569,11 +7598,11 @@ function ensureAbsoluteRoot(root, itemPath) { | |||||||
|         // Check for itemPath like \ or \foo
 |         // Check for itemPath like \ or \foo
 | ||||||
|         else if (normalizeSeparators(itemPath).match(/^\\$|^\\[^\\]/)) { |         else if (normalizeSeparators(itemPath).match(/^\\$|^\\[^\\]/)) { | ||||||
|             const cwd = process.cwd(); |             const cwd = process.cwd(); | ||||||
|             assert_1.default(cwd.match(/^[A-Z]:\\/i), `Expected current directory to start with an absolute drive root. Actual '${cwd}'`); |             (0, assert_1.default)(cwd.match(/^[A-Z]:\\/i), `Expected current directory to start with an absolute drive root. Actual '${cwd}'`); | ||||||
|             return `${cwd[0]}:\\${itemPath.substr(1)}`; |             return `${cwd[0]}:\\${itemPath.substr(1)}`; | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|     assert_1.default(hasAbsoluteRoot(root), `ensureAbsoluteRoot parameter 'root' must have an absolute root`); |     (0, assert_1.default)(hasAbsoluteRoot(root), `ensureAbsoluteRoot parameter 'root' must have an absolute root`); | ||||||
|     // Otherwise ensure root ends with a separator
 |     // Otherwise ensure root ends with a separator
 | ||||||
|     if (root.endsWith('/') || (IS_WINDOWS && root.endsWith('\\'))) { |     if (root.endsWith('/') || (IS_WINDOWS && root.endsWith('\\'))) { | ||||||
|         // Intentionally empty
 |         // Intentionally empty
 | ||||||
| @@ -7590,7 +7619,7 @@ exports.ensureAbsoluteRoot = ensureAbsoluteRoot; | |||||||
|  * `\\hello\share` and `C:\hello` (and using alternate separator). |  * `\\hello\share` and `C:\hello` (and using alternate separator). | ||||||
|  */ |  */ | ||||||
| function hasAbsoluteRoot(itemPath) { | function hasAbsoluteRoot(itemPath) { | ||||||
|     assert_1.default(itemPath, `hasAbsoluteRoot parameter 'itemPath' must not be empty`); |     (0, assert_1.default)(itemPath, `hasAbsoluteRoot parameter 'itemPath' must not be empty`); | ||||||
|     // Normalize separators
 |     // Normalize separators
 | ||||||
|     itemPath = normalizeSeparators(itemPath); |     itemPath = normalizeSeparators(itemPath); | ||||||
|     // Windows
 |     // Windows
 | ||||||
| @@ -7607,7 +7636,7 @@ exports.hasAbsoluteRoot = hasAbsoluteRoot; | |||||||
|  * `\`, `\hello`, `\\hello\share`, `C:`, and `C:\hello` (and using alternate separator).
 |  * `\`, `\hello`, `\\hello\share`, `C:`, and `C:\hello` (and using alternate separator).
 | ||||||
|  */ |  */ | ||||||
| function hasRoot(itemPath) { | function hasRoot(itemPath) { | ||||||
|     assert_1.default(itemPath, `isRooted parameter 'itemPath' must not be empty`); |     (0, assert_1.default)(itemPath, `isRooted parameter 'itemPath' must not be empty`); | ||||||
|     // Normalize separators
 |     // Normalize separators
 | ||||||
|     itemPath = normalizeSeparators(itemPath); |     itemPath = normalizeSeparators(itemPath); | ||||||
|     // Windows
 |     // Windows
 | ||||||
| @@ -7675,7 +7704,11 @@ exports.safeTrimTrailingSeparator = safeTrimTrailingSeparator; | |||||||
| 
 | 
 | ||||||
| var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||||||
|     if (k2 === undefined) k2 = k; |     if (k2 === undefined) k2 = k; | ||||||
|     Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); |     var desc = Object.getOwnPropertyDescriptor(m, k); | ||||||
|  |     if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||||||
|  |       desc = { enumerable: true, get: function() { return m[k]; } }; | ||||||
|  |     } | ||||||
|  |     Object.defineProperty(o, k2, desc); | ||||||
| }) : (function(o, m, k, k2) { | }) : (function(o, m, k, k2) { | ||||||
|     if (k2 === undefined) k2 = k; |     if (k2 === undefined) k2 = k; | ||||||
|     o[k2] = m[k]; |     o[k2] = m[k]; | ||||||
| @@ -7688,7 +7721,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( | |||||||
| var __importStar = (this && this.__importStar) || function (mod) { | var __importStar = (this && this.__importStar) || function (mod) { | ||||||
|     if (mod && mod.__esModule) return mod; |     if (mod && mod.__esModule) return mod; | ||||||
|     var result = {}; |     var result = {}; | ||||||
|     if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); |     if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||||||
|     __setModuleDefault(result, mod); |     __setModuleDefault(result, mod); | ||||||
|     return result; |     return result; | ||||||
| }; | }; | ||||||
| @@ -7713,7 +7746,7 @@ class Path { | |||||||
|         this.segments = []; |         this.segments = []; | ||||||
|         // String
 |         // String
 | ||||||
|         if (typeof itemPath === 'string') { |         if (typeof itemPath === 'string') { | ||||||
|             assert_1.default(itemPath, `Parameter 'itemPath' must not be empty`); |             (0, assert_1.default)(itemPath, `Parameter 'itemPath' must not be empty`); | ||||||
|             // Normalize slashes and trim unnecessary trailing slash
 |             // Normalize slashes and trim unnecessary trailing slash
 | ||||||
|             itemPath = pathHelper.safeTrimTrailingSeparator(itemPath); |             itemPath = pathHelper.safeTrimTrailingSeparator(itemPath); | ||||||
|             // Not rooted
 |             // Not rooted
 | ||||||
| @@ -7740,24 +7773,24 @@ class Path { | |||||||
|         // Array
 |         // Array
 | ||||||
|         else { |         else { | ||||||
|             // Must not be empty
 |             // Must not be empty
 | ||||||
|             assert_1.default(itemPath.length > 0, `Parameter 'itemPath' must not be an empty array`); |             (0, assert_1.default)(itemPath.length > 0, `Parameter 'itemPath' must not be an empty array`); | ||||||
|             // Each segment
 |             // Each segment
 | ||||||
|             for (let i = 0; i < itemPath.length; i++) { |             for (let i = 0; i < itemPath.length; i++) { | ||||||
|                 let segment = itemPath[i]; |                 let segment = itemPath[i]; | ||||||
|                 // Must not be empty
 |                 // Must not be empty
 | ||||||
|                 assert_1.default(segment, `Parameter 'itemPath' must not contain any empty segments`); |                 (0, assert_1.default)(segment, `Parameter 'itemPath' must not contain any empty segments`); | ||||||
|                 // Normalize slashes
 |                 // Normalize slashes
 | ||||||
|                 segment = pathHelper.normalizeSeparators(itemPath[i]); |                 segment = pathHelper.normalizeSeparators(itemPath[i]); | ||||||
|                 // Root segment
 |                 // Root segment
 | ||||||
|                 if (i === 0 && pathHelper.hasRoot(segment)) { |                 if (i === 0 && pathHelper.hasRoot(segment)) { | ||||||
|                     segment = pathHelper.safeTrimTrailingSeparator(segment); |                     segment = pathHelper.safeTrimTrailingSeparator(segment); | ||||||
|                     assert_1.default(segment === pathHelper.dirname(segment), `Parameter 'itemPath' root segment contains information for multiple segments`); |                     (0, assert_1.default)(segment === pathHelper.dirname(segment), `Parameter 'itemPath' root segment contains information for multiple segments`); | ||||||
|                     this.segments.push(segment); |                     this.segments.push(segment); | ||||||
|                 } |                 } | ||||||
|                 // All other segments
 |                 // All other segments
 | ||||||
|                 else { |                 else { | ||||||
|                     // Must not contain slash
 |                     // Must not contain slash
 | ||||||
|                     assert_1.default(!segment.includes(path.sep), `Parameter 'itemPath' contains unexpected path separators`); |                     (0, assert_1.default)(!segment.includes(path.sep), `Parameter 'itemPath' contains unexpected path separators`); | ||||||
|                     this.segments.push(segment); |                     this.segments.push(segment); | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
| @@ -7795,7 +7828,11 @@ exports.Path = Path; | |||||||
| 
 | 
 | ||||||
| var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||||||
|     if (k2 === undefined) k2 = k; |     if (k2 === undefined) k2 = k; | ||||||
|     Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); |     var desc = Object.getOwnPropertyDescriptor(m, k); | ||||||
|  |     if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||||||
|  |       desc = { enumerable: true, get: function() { return m[k]; } }; | ||||||
|  |     } | ||||||
|  |     Object.defineProperty(o, k2, desc); | ||||||
| }) : (function(o, m, k, k2) { | }) : (function(o, m, k, k2) { | ||||||
|     if (k2 === undefined) k2 = k; |     if (k2 === undefined) k2 = k; | ||||||
|     o[k2] = m[k]; |     o[k2] = m[k]; | ||||||
| @@ -7808,7 +7845,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( | |||||||
| var __importStar = (this && this.__importStar) || function (mod) { | var __importStar = (this && this.__importStar) || function (mod) { | ||||||
|     if (mod && mod.__esModule) return mod; |     if (mod && mod.__esModule) return mod; | ||||||
|     var result = {}; |     var result = {}; | ||||||
|     if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); |     if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||||||
|     __setModuleDefault(result, mod); |     __setModuleDefault(result, mod); | ||||||
|     return result; |     return result; | ||||||
| }; | }; | ||||||
| @@ -7896,7 +7933,11 @@ exports.partialMatch = partialMatch; | |||||||
| 
 | 
 | ||||||
| var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||||||
|     if (k2 === undefined) k2 = k; |     if (k2 === undefined) k2 = k; | ||||||
|     Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); |     var desc = Object.getOwnPropertyDescriptor(m, k); | ||||||
|  |     if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||||||
|  |       desc = { enumerable: true, get: function() { return m[k]; } }; | ||||||
|  |     } | ||||||
|  |     Object.defineProperty(o, k2, desc); | ||||||
| }) : (function(o, m, k, k2) { | }) : (function(o, m, k, k2) { | ||||||
|     if (k2 === undefined) k2 = k; |     if (k2 === undefined) k2 = k; | ||||||
|     o[k2] = m[k]; |     o[k2] = m[k]; | ||||||
| @@ -7909,7 +7950,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( | |||||||
| var __importStar = (this && this.__importStar) || function (mod) { | var __importStar = (this && this.__importStar) || function (mod) { | ||||||
|     if (mod && mod.__esModule) return mod; |     if (mod && mod.__esModule) return mod; | ||||||
|     var result = {}; |     var result = {}; | ||||||
|     if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); |     if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||||||
|     __setModuleDefault(result, mod); |     __setModuleDefault(result, mod); | ||||||
|     return result; |     return result; | ||||||
| }; | }; | ||||||
| @@ -7941,9 +7982,9 @@ class Pattern { | |||||||
|         else { |         else { | ||||||
|             // Convert to pattern
 |             // Convert to pattern
 | ||||||
|             segments = segments || []; |             segments = segments || []; | ||||||
|             assert_1.default(segments.length, `Parameter 'segments' must not empty`); |             (0, assert_1.default)(segments.length, `Parameter 'segments' must not empty`); | ||||||
|             const root = Pattern.getLiteral(segments[0]); |             const root = Pattern.getLiteral(segments[0]); | ||||||
|             assert_1.default(root && pathHelper.hasAbsoluteRoot(root), `Parameter 'segments' first element must be a root path`); |             (0, assert_1.default)(root && pathHelper.hasAbsoluteRoot(root), `Parameter 'segments' first element must be a root path`); | ||||||
|             pattern = new internal_path_1.Path(segments).toString().trim(); |             pattern = new internal_path_1.Path(segments).toString().trim(); | ||||||
|             if (patternOrNegate) { |             if (patternOrNegate) { | ||||||
|                 pattern = `!${pattern}`; |                 pattern = `!${pattern}`; | ||||||
| @@ -8037,13 +8078,13 @@ class Pattern { | |||||||
|      */ |      */ | ||||||
|     static fixupPattern(pattern, homedir) { |     static fixupPattern(pattern, homedir) { | ||||||
|         // Empty
 |         // Empty
 | ||||||
|         assert_1.default(pattern, 'pattern cannot be empty'); |         (0, assert_1.default)(pattern, 'pattern cannot be empty'); | ||||||
|         // Must not contain `.` segment, unless first segment
 |         // Must not contain `.` segment, unless first segment
 | ||||||
|         // Must not contain `..` segment
 |         // Must not contain `..` segment
 | ||||||
|         const literalSegments = new internal_path_1.Path(pattern).segments.map(x => Pattern.getLiteral(x)); |         const literalSegments = new internal_path_1.Path(pattern).segments.map(x => Pattern.getLiteral(x)); | ||||||
|         assert_1.default(literalSegments.every((x, i) => (x !== '.' || i === 0) && x !== '..'), `Invalid pattern '${pattern}'. Relative pathing '.' and '..' is not allowed.`); |         (0, assert_1.default)(literalSegments.every((x, i) => (x !== '.' || i === 0) && x !== '..'), `Invalid pattern '${pattern}'. Relative pathing '.' and '..' is not allowed.`); | ||||||
|         // Must not contain globs in root, e.g. Windows UNC path \\foo\b*r
 |         // Must not contain globs in root, e.g. Windows UNC path \\foo\b*r
 | ||||||
|         assert_1.default(!pathHelper.hasRoot(pattern) || literalSegments[0], `Invalid pattern '${pattern}'. Root segment must not contain globs.`); |         (0, assert_1.default)(!pathHelper.hasRoot(pattern) || literalSegments[0], `Invalid pattern '${pattern}'. Root segment must not contain globs.`); | ||||||
|         // Normalize slashes
 |         // Normalize slashes
 | ||||||
|         pattern = pathHelper.normalizeSeparators(pattern); |         pattern = pathHelper.normalizeSeparators(pattern); | ||||||
|         // Replace leading `.` segment
 |         // Replace leading `.` segment
 | ||||||
| @@ -8053,8 +8094,8 @@ class Pattern { | |||||||
|         // Replace leading `~` segment
 |         // Replace leading `~` segment
 | ||||||
|         else if (pattern === '~' || pattern.startsWith(`~${path.sep}`)) { |         else if (pattern === '~' || pattern.startsWith(`~${path.sep}`)) { | ||||||
|             homedir = homedir || os.homedir(); |             homedir = homedir || os.homedir(); | ||||||
|             assert_1.default(homedir, 'Unable to determine HOME directory'); |             (0, assert_1.default)(homedir, 'Unable to determine HOME directory'); | ||||||
|             assert_1.default(pathHelper.hasAbsoluteRoot(homedir), `Expected HOME directory to be a rooted path. Actual '${homedir}'`); |             (0, assert_1.default)(pathHelper.hasAbsoluteRoot(homedir), `Expected HOME directory to be a rooted path. Actual '${homedir}'`); | ||||||
|             pattern = Pattern.globEscape(homedir) + pattern.substr(1); |             pattern = Pattern.globEscape(homedir) + pattern.substr(1); | ||||||
|         } |         } | ||||||
|         // Replace relative drive root, e.g. pattern is C: or C:foo
 |         // Replace relative drive root, e.g. pattern is C: or C:foo
 | ||||||
|   | |||||||
							
								
								
									
										133
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										133
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							| @@ -7238,7 +7238,7 @@ function hashFiles(patterns, currentWorkspace = '', options, verbose = false) { | |||||||
|             followSymbolicLinks = options.followSymbolicLinks; |             followSymbolicLinks = options.followSymbolicLinks; | ||||||
|         } |         } | ||||||
|         const globber = yield create(patterns, { followSymbolicLinks }); |         const globber = yield create(patterns, { followSymbolicLinks }); | ||||||
|         return internal_hash_files_1.hashFiles(globber, currentWorkspace, verbose); |         return (0, internal_hash_files_1.hashFiles)(globber, currentWorkspace, verbose); | ||||||
|     }); |     }); | ||||||
| } | } | ||||||
| exports.hashFiles = hashFiles; | exports.hashFiles = hashFiles; | ||||||
| @@ -7253,7 +7253,11 @@ exports.hashFiles = hashFiles; | |||||||
| 
 | 
 | ||||||
| var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||||||
|     if (k2 === undefined) k2 = k; |     if (k2 === undefined) k2 = k; | ||||||
|     Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); |     var desc = Object.getOwnPropertyDescriptor(m, k); | ||||||
|  |     if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||||||
|  |       desc = { enumerable: true, get: function() { return m[k]; } }; | ||||||
|  |     } | ||||||
|  |     Object.defineProperty(o, k2, desc); | ||||||
| }) : (function(o, m, k, k2) { | }) : (function(o, m, k, k2) { | ||||||
|     if (k2 === undefined) k2 = k; |     if (k2 === undefined) k2 = k; | ||||||
|     o[k2] = m[k]; |     o[k2] = m[k]; | ||||||
| @@ -7266,7 +7270,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( | |||||||
| var __importStar = (this && this.__importStar) || function (mod) { | var __importStar = (this && this.__importStar) || function (mod) { | ||||||
|     if (mod && mod.__esModule) return mod; |     if (mod && mod.__esModule) return mod; | ||||||
|     var result = {}; |     var result = {}; | ||||||
|     if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); |     if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||||||
|     __setModuleDefault(result, mod); |     __setModuleDefault(result, mod); | ||||||
|     return result; |     return result; | ||||||
| }; | }; | ||||||
| @@ -7281,7 +7285,8 @@ function getOptions(copy) { | |||||||
|         followSymbolicLinks: true, |         followSymbolicLinks: true, | ||||||
|         implicitDescendants: true, |         implicitDescendants: true, | ||||||
|         matchDirectories: true, |         matchDirectories: true, | ||||||
|         omitBrokenSymbolicLinks: true |         omitBrokenSymbolicLinks: true, | ||||||
|  |         excludeHiddenFiles: false | ||||||
|     }; |     }; | ||||||
|     if (copy) { |     if (copy) { | ||||||
|         if (typeof copy.followSymbolicLinks === 'boolean') { |         if (typeof copy.followSymbolicLinks === 'boolean') { | ||||||
| @@ -7300,6 +7305,10 @@ function getOptions(copy) { | |||||||
|             result.omitBrokenSymbolicLinks = copy.omitBrokenSymbolicLinks; |             result.omitBrokenSymbolicLinks = copy.omitBrokenSymbolicLinks; | ||||||
|             core.debug(`omitBrokenSymbolicLinks '${result.omitBrokenSymbolicLinks}'`); |             core.debug(`omitBrokenSymbolicLinks '${result.omitBrokenSymbolicLinks}'`); | ||||||
|         } |         } | ||||||
|  |         if (typeof copy.excludeHiddenFiles === 'boolean') { | ||||||
|  |             result.excludeHiddenFiles = copy.excludeHiddenFiles; | ||||||
|  |             core.debug(`excludeHiddenFiles '${result.excludeHiddenFiles}'`); | ||||||
|  |         } | ||||||
|     } |     } | ||||||
|     return result; |     return result; | ||||||
| } | } | ||||||
| @@ -7315,7 +7324,11 @@ exports.getOptions = getOptions; | |||||||
| 
 | 
 | ||||||
| var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||||||
|     if (k2 === undefined) k2 = k; |     if (k2 === undefined) k2 = k; | ||||||
|     Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); |     var desc = Object.getOwnPropertyDescriptor(m, k); | ||||||
|  |     if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||||||
|  |       desc = { enumerable: true, get: function() { return m[k]; } }; | ||||||
|  |     } | ||||||
|  |     Object.defineProperty(o, k2, desc); | ||||||
| }) : (function(o, m, k, k2) { | }) : (function(o, m, k, k2) { | ||||||
|     if (k2 === undefined) k2 = k; |     if (k2 === undefined) k2 = k; | ||||||
|     o[k2] = m[k]; |     o[k2] = m[k]; | ||||||
| @@ -7328,7 +7341,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( | |||||||
| var __importStar = (this && this.__importStar) || function (mod) { | var __importStar = (this && this.__importStar) || function (mod) { | ||||||
|     if (mod && mod.__esModule) return mod; |     if (mod && mod.__esModule) return mod; | ||||||
|     var result = {}; |     var result = {}; | ||||||
|     if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); |     if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||||||
|     __setModuleDefault(result, mod); |     __setModuleDefault(result, mod); | ||||||
|     return result; |     return result; | ||||||
| }; | }; | ||||||
| @@ -7382,19 +7395,21 @@ class DefaultGlobber { | |||||||
|         return this.searchPaths.slice(); |         return this.searchPaths.slice(); | ||||||
|     } |     } | ||||||
|     glob() { |     glob() { | ||||||
|         var e_1, _a; |         var _a, e_1, _b, _c; | ||||||
|         return __awaiter(this, void 0, void 0, function* () { |         return __awaiter(this, void 0, void 0, function* () { | ||||||
|             const result = []; |             const result = []; | ||||||
|             try { |             try { | ||||||
|                 for (var _b = __asyncValues(this.globGenerator()), _c; _c = yield _b.next(), !_c.done;) { |                 for (var _d = true, _e = __asyncValues(this.globGenerator()), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) { | ||||||
|                     const itemPath = _c.value; |                     _c = _f.value; | ||||||
|  |                     _d = false; | ||||||
|  |                     const itemPath = _c; | ||||||
|                     result.push(itemPath); |                     result.push(itemPath); | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|             catch (e_1_1) { e_1 = { error: e_1_1 }; } |             catch (e_1_1) { e_1 = { error: e_1_1 }; } | ||||||
|             finally { |             finally { | ||||||
|                 try { |                 try { | ||||||
|                     if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b); |                     if (!_d && !_a && (_b = _e.return)) yield _b.call(_e); | ||||||
|                 } |                 } | ||||||
|                 finally { if (e_1) throw e_1.error; } |                 finally { if (e_1) throw e_1.error; } | ||||||
|             } |             } | ||||||
| @@ -7452,6 +7467,10 @@ class DefaultGlobber { | |||||||
|                 if (!stats) { |                 if (!stats) { | ||||||
|                     continue; |                     continue; | ||||||
|                 } |                 } | ||||||
|  |                 // Hidden file or directory?
 | ||||||
|  |                 if (options.excludeHiddenFiles && path.basename(item.path).match(/^\./)) { | ||||||
|  |                     continue; | ||||||
|  |                 } | ||||||
|                 // Directory
 |                 // Directory
 | ||||||
|                 if (stats.isDirectory()) { |                 if (stats.isDirectory()) { | ||||||
|                     // Matched
 |                     // Matched
 | ||||||
| @@ -7557,7 +7576,11 @@ exports.DefaultGlobber = DefaultGlobber; | |||||||
| 
 | 
 | ||||||
| var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||||||
|     if (k2 === undefined) k2 = k; |     if (k2 === undefined) k2 = k; | ||||||
|     Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); |     var desc = Object.getOwnPropertyDescriptor(m, k); | ||||||
|  |     if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||||||
|  |       desc = { enumerable: true, get: function() { return m[k]; } }; | ||||||
|  |     } | ||||||
|  |     Object.defineProperty(o, k2, desc); | ||||||
| }) : (function(o, m, k, k2) { | }) : (function(o, m, k, k2) { | ||||||
|     if (k2 === undefined) k2 = k; |     if (k2 === undefined) k2 = k; | ||||||
|     o[k2] = m[k]; |     o[k2] = m[k]; | ||||||
| @@ -7570,7 +7593,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( | |||||||
| var __importStar = (this && this.__importStar) || function (mod) { | var __importStar = (this && this.__importStar) || function (mod) { | ||||||
|     if (mod && mod.__esModule) return mod; |     if (mod && mod.__esModule) return mod; | ||||||
|     var result = {}; |     var result = {}; | ||||||
|     if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); |     if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||||||
|     __setModuleDefault(result, mod); |     __setModuleDefault(result, mod); | ||||||
|     return result; |     return result; | ||||||
| }; | }; | ||||||
| @@ -7599,19 +7622,21 @@ const stream = __importStar(__nccwpck_require__(2781)); | |||||||
| const util = __importStar(__nccwpck_require__(3837)); | const util = __importStar(__nccwpck_require__(3837)); | ||||||
| const path = __importStar(__nccwpck_require__(1017)); | const path = __importStar(__nccwpck_require__(1017)); | ||||||
| function hashFiles(globber, currentWorkspace, verbose = false) { | function hashFiles(globber, currentWorkspace, verbose = false) { | ||||||
|     var e_1, _a; |     var _a, e_1, _b, _c; | ||||||
|     var _b; |     var _d; | ||||||
|     return __awaiter(this, void 0, void 0, function* () { |     return __awaiter(this, void 0, void 0, function* () { | ||||||
|         const writeDelegate = verbose ? core.info : core.debug; |         const writeDelegate = verbose ? core.info : core.debug; | ||||||
|         let hasMatch = false; |         let hasMatch = false; | ||||||
|         const githubWorkspace = currentWorkspace |         const githubWorkspace = currentWorkspace | ||||||
|             ? currentWorkspace |             ? currentWorkspace | ||||||
|             : (_b = process.env['GITHUB_WORKSPACE']) !== null && _b !== void 0 ? _b : process.cwd(); |             : (_d = process.env['GITHUB_WORKSPACE']) !== null && _d !== void 0 ? _d : process.cwd(); | ||||||
|         const result = crypto.createHash('sha256'); |         const result = crypto.createHash('sha256'); | ||||||
|         let count = 0; |         let count = 0; | ||||||
|         try { |         try { | ||||||
|             for (var _c = __asyncValues(globber.globGenerator()), _d; _d = yield _c.next(), !_d.done;) { |             for (var _e = true, _f = __asyncValues(globber.globGenerator()), _g; _g = yield _f.next(), _a = _g.done, !_a; _e = true) { | ||||||
|                 const file = _d.value; |                 _c = _g.value; | ||||||
|  |                 _e = false; | ||||||
|  |                 const file = _c; | ||||||
|                 writeDelegate(file); |                 writeDelegate(file); | ||||||
|                 if (!file.startsWith(`${githubWorkspace}${path.sep}`)) { |                 if (!file.startsWith(`${githubWorkspace}${path.sep}`)) { | ||||||
|                     writeDelegate(`Ignore '${file}' since it is not under GITHUB_WORKSPACE.`); |                     writeDelegate(`Ignore '${file}' since it is not under GITHUB_WORKSPACE.`); | ||||||
| @@ -7634,7 +7659,7 @@ function hashFiles(globber, currentWorkspace, verbose = false) { | |||||||
|         catch (e_1_1) { e_1 = { error: e_1_1 }; } |         catch (e_1_1) { e_1 = { error: e_1_1 }; } | ||||||
|         finally { |         finally { | ||||||
|             try { |             try { | ||||||
|                 if (_d && !_d.done && (_a = _c.return)) yield _a.call(_c); |                 if (!_e && !_a && (_b = _f.return)) yield _b.call(_f); | ||||||
|             } |             } | ||||||
|             finally { if (e_1) throw e_1.error; } |             finally { if (e_1) throw e_1.error; } | ||||||
|         } |         } | ||||||
| @@ -7674,7 +7699,7 @@ var MatchKind; | |||||||
|     MatchKind[MatchKind["File"] = 2] = "File"; |     MatchKind[MatchKind["File"] = 2] = "File"; | ||||||
|     /** Matched */ |     /** Matched */ | ||||||
|     MatchKind[MatchKind["All"] = 3] = "All"; |     MatchKind[MatchKind["All"] = 3] = "All"; | ||||||
| })(MatchKind = exports.MatchKind || (exports.MatchKind = {})); | })(MatchKind || (exports.MatchKind = MatchKind = {})); | ||||||
| //# sourceMappingURL=internal-match-kind.js.map
 | //# sourceMappingURL=internal-match-kind.js.map
 | ||||||
| 
 | 
 | ||||||
| /***/ }), | /***/ }), | ||||||
| @@ -7686,7 +7711,11 @@ var MatchKind; | |||||||
| 
 | 
 | ||||||
| var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||||||
|     if (k2 === undefined) k2 = k; |     if (k2 === undefined) k2 = k; | ||||||
|     Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); |     var desc = Object.getOwnPropertyDescriptor(m, k); | ||||||
|  |     if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||||||
|  |       desc = { enumerable: true, get: function() { return m[k]; } }; | ||||||
|  |     } | ||||||
|  |     Object.defineProperty(o, k2, desc); | ||||||
| }) : (function(o, m, k, k2) { | }) : (function(o, m, k, k2) { | ||||||
|     if (k2 === undefined) k2 = k; |     if (k2 === undefined) k2 = k; | ||||||
|     o[k2] = m[k]; |     o[k2] = m[k]; | ||||||
| @@ -7699,7 +7728,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( | |||||||
| var __importStar = (this && this.__importStar) || function (mod) { | var __importStar = (this && this.__importStar) || function (mod) { | ||||||
|     if (mod && mod.__esModule) return mod; |     if (mod && mod.__esModule) return mod; | ||||||
|     var result = {}; |     var result = {}; | ||||||
|     if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); |     if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||||||
|     __setModuleDefault(result, mod); |     __setModuleDefault(result, mod); | ||||||
|     return result; |     return result; | ||||||
| }; | }; | ||||||
| @@ -7749,8 +7778,8 @@ exports.dirname = dirname; | |||||||
|  * or `C:` are expanded based on the current working directory. |  * or `C:` are expanded based on the current working directory. | ||||||
|  */ |  */ | ||||||
| function ensureAbsoluteRoot(root, itemPath) { | function ensureAbsoluteRoot(root, itemPath) { | ||||||
|     assert_1.default(root, `ensureAbsoluteRoot parameter 'root' must not be empty`); |     (0, assert_1.default)(root, `ensureAbsoluteRoot parameter 'root' must not be empty`); | ||||||
|     assert_1.default(itemPath, `ensureAbsoluteRoot parameter 'itemPath' must not be empty`); |     (0, assert_1.default)(itemPath, `ensureAbsoluteRoot parameter 'itemPath' must not be empty`); | ||||||
|     // Already rooted
 |     // Already rooted
 | ||||||
|     if (hasAbsoluteRoot(itemPath)) { |     if (hasAbsoluteRoot(itemPath)) { | ||||||
|         return itemPath; |         return itemPath; | ||||||
| @@ -7760,7 +7789,7 @@ function ensureAbsoluteRoot(root, itemPath) { | |||||||
|         // Check for itemPath like C: or C:foo
 |         // Check for itemPath like C: or C:foo
 | ||||||
|         if (itemPath.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)) { |         if (itemPath.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)) { | ||||||
|             let cwd = process.cwd(); |             let cwd = process.cwd(); | ||||||
|             assert_1.default(cwd.match(/^[A-Z]:\\/i), `Expected current directory to start with an absolute drive root. Actual '${cwd}'`); |             (0, assert_1.default)(cwd.match(/^[A-Z]:\\/i), `Expected current directory to start with an absolute drive root. Actual '${cwd}'`); | ||||||
|             // Drive letter matches cwd? Expand to cwd
 |             // Drive letter matches cwd? Expand to cwd
 | ||||||
|             if (itemPath[0].toUpperCase() === cwd[0].toUpperCase()) { |             if (itemPath[0].toUpperCase() === cwd[0].toUpperCase()) { | ||||||
|                 // Drive only, e.g. C:
 |                 // Drive only, e.g. C:
 | ||||||
| @@ -7785,11 +7814,11 @@ function ensureAbsoluteRoot(root, itemPath) { | |||||||
|         // Check for itemPath like \ or \foo
 |         // Check for itemPath like \ or \foo
 | ||||||
|         else if (normalizeSeparators(itemPath).match(/^\\$|^\\[^\\]/)) { |         else if (normalizeSeparators(itemPath).match(/^\\$|^\\[^\\]/)) { | ||||||
|             const cwd = process.cwd(); |             const cwd = process.cwd(); | ||||||
|             assert_1.default(cwd.match(/^[A-Z]:\\/i), `Expected current directory to start with an absolute drive root. Actual '${cwd}'`); |             (0, assert_1.default)(cwd.match(/^[A-Z]:\\/i), `Expected current directory to start with an absolute drive root. Actual '${cwd}'`); | ||||||
|             return `${cwd[0]}:\\${itemPath.substr(1)}`; |             return `${cwd[0]}:\\${itemPath.substr(1)}`; | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|     assert_1.default(hasAbsoluteRoot(root), `ensureAbsoluteRoot parameter 'root' must have an absolute root`); |     (0, assert_1.default)(hasAbsoluteRoot(root), `ensureAbsoluteRoot parameter 'root' must have an absolute root`); | ||||||
|     // Otherwise ensure root ends with a separator
 |     // Otherwise ensure root ends with a separator
 | ||||||
|     if (root.endsWith('/') || (IS_WINDOWS && root.endsWith('\\'))) { |     if (root.endsWith('/') || (IS_WINDOWS && root.endsWith('\\'))) { | ||||||
|         // Intentionally empty
 |         // Intentionally empty
 | ||||||
| @@ -7806,7 +7835,7 @@ exports.ensureAbsoluteRoot = ensureAbsoluteRoot; | |||||||
|  * `\\hello\share` and `C:\hello` (and using alternate separator). |  * `\\hello\share` and `C:\hello` (and using alternate separator). | ||||||
|  */ |  */ | ||||||
| function hasAbsoluteRoot(itemPath) { | function hasAbsoluteRoot(itemPath) { | ||||||
|     assert_1.default(itemPath, `hasAbsoluteRoot parameter 'itemPath' must not be empty`); |     (0, assert_1.default)(itemPath, `hasAbsoluteRoot parameter 'itemPath' must not be empty`); | ||||||
|     // Normalize separators
 |     // Normalize separators
 | ||||||
|     itemPath = normalizeSeparators(itemPath); |     itemPath = normalizeSeparators(itemPath); | ||||||
|     // Windows
 |     // Windows
 | ||||||
| @@ -7823,7 +7852,7 @@ exports.hasAbsoluteRoot = hasAbsoluteRoot; | |||||||
|  * `\`, `\hello`, `\\hello\share`, `C:`, and `C:\hello` (and using alternate separator).
 |  * `\`, `\hello`, `\\hello\share`, `C:`, and `C:\hello` (and using alternate separator).
 | ||||||
|  */ |  */ | ||||||
| function hasRoot(itemPath) { | function hasRoot(itemPath) { | ||||||
|     assert_1.default(itemPath, `isRooted parameter 'itemPath' must not be empty`); |     (0, assert_1.default)(itemPath, `isRooted parameter 'itemPath' must not be empty`); | ||||||
|     // Normalize separators
 |     // Normalize separators
 | ||||||
|     itemPath = normalizeSeparators(itemPath); |     itemPath = normalizeSeparators(itemPath); | ||||||
|     // Windows
 |     // Windows
 | ||||||
| @@ -7891,7 +7920,11 @@ exports.safeTrimTrailingSeparator = safeTrimTrailingSeparator; | |||||||
| 
 | 
 | ||||||
| var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||||||
|     if (k2 === undefined) k2 = k; |     if (k2 === undefined) k2 = k; | ||||||
|     Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); |     var desc = Object.getOwnPropertyDescriptor(m, k); | ||||||
|  |     if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||||||
|  |       desc = { enumerable: true, get: function() { return m[k]; } }; | ||||||
|  |     } | ||||||
|  |     Object.defineProperty(o, k2, desc); | ||||||
| }) : (function(o, m, k, k2) { | }) : (function(o, m, k, k2) { | ||||||
|     if (k2 === undefined) k2 = k; |     if (k2 === undefined) k2 = k; | ||||||
|     o[k2] = m[k]; |     o[k2] = m[k]; | ||||||
| @@ -7904,7 +7937,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( | |||||||
| var __importStar = (this && this.__importStar) || function (mod) { | var __importStar = (this && this.__importStar) || function (mod) { | ||||||
|     if (mod && mod.__esModule) return mod; |     if (mod && mod.__esModule) return mod; | ||||||
|     var result = {}; |     var result = {}; | ||||||
|     if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); |     if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||||||
|     __setModuleDefault(result, mod); |     __setModuleDefault(result, mod); | ||||||
|     return result; |     return result; | ||||||
| }; | }; | ||||||
| @@ -7929,7 +7962,7 @@ class Path { | |||||||
|         this.segments = []; |         this.segments = []; | ||||||
|         // String
 |         // String
 | ||||||
|         if (typeof itemPath === 'string') { |         if (typeof itemPath === 'string') { | ||||||
|             assert_1.default(itemPath, `Parameter 'itemPath' must not be empty`); |             (0, assert_1.default)(itemPath, `Parameter 'itemPath' must not be empty`); | ||||||
|             // Normalize slashes and trim unnecessary trailing slash
 |             // Normalize slashes and trim unnecessary trailing slash
 | ||||||
|             itemPath = pathHelper.safeTrimTrailingSeparator(itemPath); |             itemPath = pathHelper.safeTrimTrailingSeparator(itemPath); | ||||||
|             // Not rooted
 |             // Not rooted
 | ||||||
| @@ -7956,24 +7989,24 @@ class Path { | |||||||
|         // Array
 |         // Array
 | ||||||
|         else { |         else { | ||||||
|             // Must not be empty
 |             // Must not be empty
 | ||||||
|             assert_1.default(itemPath.length > 0, `Parameter 'itemPath' must not be an empty array`); |             (0, assert_1.default)(itemPath.length > 0, `Parameter 'itemPath' must not be an empty array`); | ||||||
|             // Each segment
 |             // Each segment
 | ||||||
|             for (let i = 0; i < itemPath.length; i++) { |             for (let i = 0; i < itemPath.length; i++) { | ||||||
|                 let segment = itemPath[i]; |                 let segment = itemPath[i]; | ||||||
|                 // Must not be empty
 |                 // Must not be empty
 | ||||||
|                 assert_1.default(segment, `Parameter 'itemPath' must not contain any empty segments`); |                 (0, assert_1.default)(segment, `Parameter 'itemPath' must not contain any empty segments`); | ||||||
|                 // Normalize slashes
 |                 // Normalize slashes
 | ||||||
|                 segment = pathHelper.normalizeSeparators(itemPath[i]); |                 segment = pathHelper.normalizeSeparators(itemPath[i]); | ||||||
|                 // Root segment
 |                 // Root segment
 | ||||||
|                 if (i === 0 && pathHelper.hasRoot(segment)) { |                 if (i === 0 && pathHelper.hasRoot(segment)) { | ||||||
|                     segment = pathHelper.safeTrimTrailingSeparator(segment); |                     segment = pathHelper.safeTrimTrailingSeparator(segment); | ||||||
|                     assert_1.default(segment === pathHelper.dirname(segment), `Parameter 'itemPath' root segment contains information for multiple segments`); |                     (0, assert_1.default)(segment === pathHelper.dirname(segment), `Parameter 'itemPath' root segment contains information for multiple segments`); | ||||||
|                     this.segments.push(segment); |                     this.segments.push(segment); | ||||||
|                 } |                 } | ||||||
|                 // All other segments
 |                 // All other segments
 | ||||||
|                 else { |                 else { | ||||||
|                     // Must not contain slash
 |                     // Must not contain slash
 | ||||||
|                     assert_1.default(!segment.includes(path.sep), `Parameter 'itemPath' contains unexpected path separators`); |                     (0, assert_1.default)(!segment.includes(path.sep), `Parameter 'itemPath' contains unexpected path separators`); | ||||||
|                     this.segments.push(segment); |                     this.segments.push(segment); | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
| @@ -8011,7 +8044,11 @@ exports.Path = Path; | |||||||
| 
 | 
 | ||||||
| var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||||||
|     if (k2 === undefined) k2 = k; |     if (k2 === undefined) k2 = k; | ||||||
|     Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); |     var desc = Object.getOwnPropertyDescriptor(m, k); | ||||||
|  |     if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||||||
|  |       desc = { enumerable: true, get: function() { return m[k]; } }; | ||||||
|  |     } | ||||||
|  |     Object.defineProperty(o, k2, desc); | ||||||
| }) : (function(o, m, k, k2) { | }) : (function(o, m, k, k2) { | ||||||
|     if (k2 === undefined) k2 = k; |     if (k2 === undefined) k2 = k; | ||||||
|     o[k2] = m[k]; |     o[k2] = m[k]; | ||||||
| @@ -8024,7 +8061,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( | |||||||
| var __importStar = (this && this.__importStar) || function (mod) { | var __importStar = (this && this.__importStar) || function (mod) { | ||||||
|     if (mod && mod.__esModule) return mod; |     if (mod && mod.__esModule) return mod; | ||||||
|     var result = {}; |     var result = {}; | ||||||
|     if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); |     if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||||||
|     __setModuleDefault(result, mod); |     __setModuleDefault(result, mod); | ||||||
|     return result; |     return result; | ||||||
| }; | }; | ||||||
| @@ -8112,7 +8149,11 @@ exports.partialMatch = partialMatch; | |||||||
| 
 | 
 | ||||||
| var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||||||
|     if (k2 === undefined) k2 = k; |     if (k2 === undefined) k2 = k; | ||||||
|     Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); |     var desc = Object.getOwnPropertyDescriptor(m, k); | ||||||
|  |     if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||||||
|  |       desc = { enumerable: true, get: function() { return m[k]; } }; | ||||||
|  |     } | ||||||
|  |     Object.defineProperty(o, k2, desc); | ||||||
| }) : (function(o, m, k, k2) { | }) : (function(o, m, k, k2) { | ||||||
|     if (k2 === undefined) k2 = k; |     if (k2 === undefined) k2 = k; | ||||||
|     o[k2] = m[k]; |     o[k2] = m[k]; | ||||||
| @@ -8125,7 +8166,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( | |||||||
| var __importStar = (this && this.__importStar) || function (mod) { | var __importStar = (this && this.__importStar) || function (mod) { | ||||||
|     if (mod && mod.__esModule) return mod; |     if (mod && mod.__esModule) return mod; | ||||||
|     var result = {}; |     var result = {}; | ||||||
|     if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); |     if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||||||
|     __setModuleDefault(result, mod); |     __setModuleDefault(result, mod); | ||||||
|     return result; |     return result; | ||||||
| }; | }; | ||||||
| @@ -8157,9 +8198,9 @@ class Pattern { | |||||||
|         else { |         else { | ||||||
|             // Convert to pattern
 |             // Convert to pattern
 | ||||||
|             segments = segments || []; |             segments = segments || []; | ||||||
|             assert_1.default(segments.length, `Parameter 'segments' must not empty`); |             (0, assert_1.default)(segments.length, `Parameter 'segments' must not empty`); | ||||||
|             const root = Pattern.getLiteral(segments[0]); |             const root = Pattern.getLiteral(segments[0]); | ||||||
|             assert_1.default(root && pathHelper.hasAbsoluteRoot(root), `Parameter 'segments' first element must be a root path`); |             (0, assert_1.default)(root && pathHelper.hasAbsoluteRoot(root), `Parameter 'segments' first element must be a root path`); | ||||||
|             pattern = new internal_path_1.Path(segments).toString().trim(); |             pattern = new internal_path_1.Path(segments).toString().trim(); | ||||||
|             if (patternOrNegate) { |             if (patternOrNegate) { | ||||||
|                 pattern = `!${pattern}`; |                 pattern = `!${pattern}`; | ||||||
| @@ -8253,13 +8294,13 @@ class Pattern { | |||||||
|      */ |      */ | ||||||
|     static fixupPattern(pattern, homedir) { |     static fixupPattern(pattern, homedir) { | ||||||
|         // Empty
 |         // Empty
 | ||||||
|         assert_1.default(pattern, 'pattern cannot be empty'); |         (0, assert_1.default)(pattern, 'pattern cannot be empty'); | ||||||
|         // Must not contain `.` segment, unless first segment
 |         // Must not contain `.` segment, unless first segment
 | ||||||
|         // Must not contain `..` segment
 |         // Must not contain `..` segment
 | ||||||
|         const literalSegments = new internal_path_1.Path(pattern).segments.map(x => Pattern.getLiteral(x)); |         const literalSegments = new internal_path_1.Path(pattern).segments.map(x => Pattern.getLiteral(x)); | ||||||
|         assert_1.default(literalSegments.every((x, i) => (x !== '.' || i === 0) && x !== '..'), `Invalid pattern '${pattern}'. Relative pathing '.' and '..' is not allowed.`); |         (0, assert_1.default)(literalSegments.every((x, i) => (x !== '.' || i === 0) && x !== '..'), `Invalid pattern '${pattern}'. Relative pathing '.' and '..' is not allowed.`); | ||||||
|         // Must not contain globs in root, e.g. Windows UNC path \\foo\b*r
 |         // Must not contain globs in root, e.g. Windows UNC path \\foo\b*r
 | ||||||
|         assert_1.default(!pathHelper.hasRoot(pattern) || literalSegments[0], `Invalid pattern '${pattern}'. Root segment must not contain globs.`); |         (0, assert_1.default)(!pathHelper.hasRoot(pattern) || literalSegments[0], `Invalid pattern '${pattern}'. Root segment must not contain globs.`); | ||||||
|         // Normalize slashes
 |         // Normalize slashes
 | ||||||
|         pattern = pathHelper.normalizeSeparators(pattern); |         pattern = pathHelper.normalizeSeparators(pattern); | ||||||
|         // Replace leading `.` segment
 |         // Replace leading `.` segment
 | ||||||
| @@ -8269,8 +8310,8 @@ class Pattern { | |||||||
|         // Replace leading `~` segment
 |         // Replace leading `~` segment
 | ||||||
|         else if (pattern === '~' || pattern.startsWith(`~${path.sep}`)) { |         else if (pattern === '~' || pattern.startsWith(`~${path.sep}`)) { | ||||||
|             homedir = homedir || os.homedir(); |             homedir = homedir || os.homedir(); | ||||||
|             assert_1.default(homedir, 'Unable to determine HOME directory'); |             (0, assert_1.default)(homedir, 'Unable to determine HOME directory'); | ||||||
|             assert_1.default(pathHelper.hasAbsoluteRoot(homedir), `Expected HOME directory to be a rooted path. Actual '${homedir}'`); |             (0, assert_1.default)(pathHelper.hasAbsoluteRoot(homedir), `Expected HOME directory to be a rooted path. Actual '${homedir}'`); | ||||||
|             pattern = Pattern.globEscape(homedir) + pattern.substr(1); |             pattern = Pattern.globEscape(homedir) + pattern.substr(1); | ||||||
|         } |         } | ||||||
|         // Replace relative drive root, e.g. pattern is C: or C:foo
 |         // Replace relative drive root, e.g. pattern is C: or C:foo
 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Aparna Jyothi
					Aparna Jyothi