Build outputs

This commit is contained in:
Daz DeBoer committed 2021-12-30 16:03:02 -07:00
1 parent 76ea8a76b2
commit 39e51526fb
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -1,2 +1,2 @@
require('./sourcemap-register.js');module.exports=function(e,t){"use strict";var a={};function __webpack_require__(t){if(a[t]){return a[t].exports}var i=a[t]={i:t,l:false,exports:{}};var n=true;try{e[t].call(i.exports,i,i.exports,__webpack_require__);n=false}finally{if(n)delete a[t]}i.l=true;return i.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(131)}return startup()}([,function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a(function(t){t(e)})}return new(a||(a=Promise))(function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const r=a(357);const p=o(a(129));const l=o(a(622));const c=a(669);const d=o(a(672));const u=c.promisify(p.exec);const m=c.promisify(p.execFile);function cp(e,t,a={}){return s(this,void 0,void 0,function*(){const{force:i,recursive:n,copySourceDirectory:o}=readCopyOptions(a);const s=(yield d.exists(t))?yield d.stat(t):null;if(s&&s.isFile()&&!i){return}const r=s&&s.isDirectory()&&o?l.join(t,l.basename(e)):t;if(!(yield d.exists(e))){throw new Error(`no such file or directory: ${e}`)}const p=yield d.stat(e);if(p.isDirectory()){if(!n){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,r,0,i)}}else{if(l.relative(e,r)===""){throw new Error(`'${r}' and '${e}' are the same file`)}yield copyFile(e,r,i)}})}t.cp=cp;function mv(e,t,a={}){return s(this,void 0,void 0,function*(){if(yield d.exists(t)){let i=true;if(yield d.isDirectory(t)){t=l.join(t,l.basename(e));i=yield d.exists(t)}if(i){if(a.force==null||a.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(l.dirname(t));yield d.rename(e,t)})}t.mv=mv;function rmRF(e){return s(this,void 0,void 0,function*(){if(d.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const t=d.getCmdPath();if(yield d.isDirectory(e,true)){yield u(`${t} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}})}else{yield u(`${t} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}}catch(e){if(e.code!=="ENOENT")throw e}try{yield d.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield d.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield m(`rm`,[`-rf`,`${e}`])}else{yield d.unlink(e)}}})}t.rmRF=rmRF;function mkdirP(e){return s(this,void 0,void 0,function*(){r.ok(e,"a path argument must be provided");yield d.mkdir(e,{recursive:true})})}t.mkdirP=mkdirP;function which(e,t){return s(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(d.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return t}const a=yield findInPath(e);if(a&&a.length>0){return a[0]}return""})}t.which=which;function findInPath(e){return s(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(d.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(l.delimiter)){if(e){t.push(e)}}}if(d.isRooted(e)){const a=yield d.tryGetExecutablePath(e,t);if(a){return[a]}return[]}if(e.includes(l.sep)){return[]}const a=[];if(process.env.PATH){for(const e of process.env.PATH.split(l.delimiter)){if(e){a.push(e)}}}const i=[];for(const n of a){const a=yield d.tryGetExecutablePath(l.join(n,e),t);if(a){i.push(a)}}return i})}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const a=Boolean(e.recursive);const i=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:a,copySourceDirectory:i}}function cpDirLine truncated
require('./sourcemap-register.js');module.exports=function(e,t){"use strict";var a={};function __webpack_require__(t){if(a[t]){return a[t].exports}var i=a[t]={i:t,l:false,exports:{}};var n=true;try{e[t].call(i.exports,i,i.exports,__webpack_require__);n=false}finally{if(n)delete a[t]}i.l=true;return i.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(131)}return startup()}([function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a(function(t){t(e)})}return new(a||(a=Promise))(function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())})};var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.ConfigurationCacheEntryExtractor=t.GradleHomeEntryExtractor=void 0;const p=r(a(622));const l=r(a(747));const c=o(a(470));const d=o(a(281));const u=a(101);const m=a(452);const f="GRADLE_BUILD_ACTION_SKIP_RESTORE";class ExtractedCacheEntry{constructor(e,t,a){this.artifactType=e;this.pattern=t;this.cacheKey=a}}class ExtractedCacheEntryMetadata{constructor(){this.entries=[]}}class ExtractedCacheEntryDefinition{constructor(e,t,a){this.uniqueFileNames=true;this.artifactType=e;this.pattern=t;this.bundle=a}withNonUniqueFileNames(){this.uniqueFileNames=false;return this}}class AbstractEntryExtractor{constructor(e,t){this.gradleUserHome=e;this.extractorName=t}restore(e){return s(this,void 0,void 0,function*(){const t=this.loadExtractedCacheEntries();const a=[];for(const i of t){const t=i.artifactType;const n=e.entry(i.pattern);const o=process.env[f]||"";if(o.includes(t)){c.info(`Not restoring extracted cache entry for ${t}`);n.markRequested("SKIP_RESTORE")}else{a.push(this.awaitForDebugging(this.restoreExtractedCacheEntry(t,i.cacheKey,i.pattern,n)))}}this.saveMetadataForCacheResults(yield Promise.all(a))})}restoreExtractedCacheEntry(e,t,a,i){return s(this,void 0,void 0,function*(){i.markRequested(t);const n=yield(0,m.restoreCache)([a],t);if(n){c.info(`Restored ${e} with key ${t} to ${a}`);i.markRestored(n.key,n.size);return new ExtractedCacheEntry(e,a,t)}else{c.info(`Did not restore ${e} with key ${t} to ${a}`);return new ExtractedCacheEntry(e,a,undefined)}})}extract(e){return s(this,void 0,void 0,function*(){const t=this.getExtractedCacheEntryDefinitions();(0,m.cacheDebug)(`Extracting cache entries for ${this.extractorName}: ${JSON.stringify(t,null,2)}`);const a=this.loadExtractedCacheEntries();const i=[];for(const n of t){const t=n.artifactType;const o=n.pattern;const s=yield d.create(o,{implicitDescendants:false,followSymbolicLinks:false});const r=yield s.glob();if(r.length===0){(0,m.cacheDebug)(`No files found to cache for ${t}`);continue}if(n.bundle){i.push(this.awaitForDebugging(this.saveExtractedCacheEntry(r,t,o,n.uniqueFileNames,a,e.entry(o))))}else{for(const o of r){i.push(this.awaitForDebugging(this.saveExtractedCacheEntry([o],t,o,n.uniqueFileNames,a,e.entry(o))))}}}this.saveMetadataForCacheResults(yield Promise.all(i))})}saveExtractedCacheEntry(e,t,a,i,n,o){var r;return s(this,void 0,void 0,function*(){const s=i?this.createCacheKeyFromFileNames(t,e):yield this.createCacheKeyFromFileContents(t,a);const p=(r=n.find(e=>e.artifactType===t&&e.pattern===a))===null||r===void 0?void 0:r.cacheKey;if(p===s){(0,m.cacheDebug)(`No change to previously restored ${t}. Not saving.`)}else{c.info(`Caching ${t} with path '${a}' and cache key: ${s}`);const e=yield(0,m.saveCache)([a],s);if(e!==undefined){o.markSaved(e.key,e.size)}}for(const t of e){(0,m.tryDelete)(t)}return new ExtractedCacheEntry(t,a,s)})}createCacheKeyFromFileNames(e,t){const a=(0,m.getCacheKeyPrefix)();const i=t.map(e=>p.default.relative(this.gradleUserHome,e));const n=(0,m.hashFileNames)(i);(0,m.cacheDebug)(`Generating cache key for ${e} from file names: ${i}`);return`${a}${e}-${n}`}createCacheKeyFromFileContents(e,t){return s(this,void 0,void 0,function*(){const a=(0,m.getCacheKeyPrefix)();const i=yield d.hashFiles(t);(0,m.cacheDebug)(`Generating cache key for ${e} from files matching: ${t}`);return`${a}${e}-${i}`})}awaitForDebugging(e){return s(this,void 0,void 0,function*(){if((0,m.isCacheDebuggingEnabled)()){yield e}return e})}loadExtractedCacheEntrieLine truncated
//# sourceMappingURL=index.js.map
+1 -1
View File
@@ -1 +1 @@
{"version":3,"sources":["/webpack/bootstrap","../node_modules/@actions/io/lib/io.js","../node_modules/@actions/exec/lib/toolrunner.js","../node_modules/wrappy/wrappy.js","../node_modules/@actions/cache/lib/internal/cacheUtils.js","../external \"tls\"","../(webpack)/ncc/@@notfound.js","../node_modules/xmlbuilder/lib/XMLDTDNotation.js","../node_modules/@opentelemetry/api/build/src/api/propagation.js","../node_modules/@azure/core-http/node_modules/uuid/dist/nil.js","../node_modules/@actions/tool-cache/lib/manifest.js","../node_modules/once/once.js","../node_modules/xmlbuilder/lib/DocumentPosition.js","../node_modules/node-fetch/node_modules/whatwg-url/lib/public-api.js","../node_modules/@azure/core-asynciterator-polyfill/dist-esm/index.js","../node_modules/@actions/core/lib/utils.js","../node_modules/uuid/v1.js","../external \"os\"","../node_modules/@azure/core-http/node_modules/tough-cookie/lib/permuteDomain.js","../node_modules/@azure/core-http/node_modules/uuid/dist/v5.js","../node_modules/asynckit/serial.js","../node_modules/minimatch/minimatch.js","../node_modules/@opentelemetry/api/build/src/trace/link.js","../node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-pattern-helper.js","../src/cache-base.ts","../node_modules/@actions/core/lib/file-command.js","../node_modules/@azure/core-http/node_modules/uuid/dist/version.js","../node_modules/@azure/abort-controller/dist/index.js","../node_modules/@opentelemetry/api/build/src/baggage/utils.js","../node_modules/@actions/cache/lib/internal/cacheHttpClient.js","../node_modules/@opentelemetry/api/build/src/api/diag.js","../node_modules/@actions/github/lib/internal/utils.js","../external \"child_process\"","../src/main.ts","../node_modules/@opentelemetry/api/build/src/context/context.js","../node_modules/uuid/lib/rng.js","../node_modules/tunnel/lib/tunnel.js","../src/cache-utils.ts","../node_modules/@opentelemetry/api/build/src/platform/node/globalThis.js","../node_modules/universalify/index.js","../node_modules/node-fetch/node_modules/webidl-conversions/lib/index.js","../node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js","../node_modules/delayed-stream/lib/delayed_stream.js","../node_modules/asynckit/lib/iterate.js","../node_modules/@opentelemetry/api/build/src/common/Time.js","../node_modules/@opentelemetry/api/build/src/trace/NoopTracerProvider.js","../src/execution.ts","../node_modules/@azure/core-http/node_modules/uuid/dist/v1.js","../node_modules/@azure/core-http/node_modules/uuid/dist/parse.js","../node_modules/@opentelemetry/api/build/src/trace/trace_state.js","../node_modules/xml2js/lib/bom.js","../external \"https\"","../external \"timers\"","../node_modules/@opentelemetry/api/build/src/trace/SpanOptions.js","../node_modules/@actions/http-client/auth.js","../node_modules/@azure/core-auth/dist/index.js","../node_modules/@opentelemetry/api/build/src/diag/consoleLogger.js","../node_modules/@azure/core-http/node_modules/uuid/dist/regex.js","../node_modules/@azure/core-http/node_modules/uuid/dist/v35.js","../node_modules/@azure/core-http/node_modules/uuid/dist/md5.js","../node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-pattern.js","../node_modules/@actions/cache/lib/internal/downloadUtils.js","../node_modules/node-fetch/node_modules/whatwg-url/lib/URL-impl.js","../node_modules/xmlbuilder/lib/XMLNode.js","../node_modules/@actions/github/lib/context.js","../node_modules/@azure/core-tracing/dist/index.js","../src/cache-reporting.ts","../node_modules/xmlbuilder/lib/XMLNodeList.js","../node_modules/semver/semver.js","../node_modules/@actions/glob/lib/glob.js","../src/provision.ts","../node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-glob-options-helper.js","../external \"buffer\"","../node_modules/@octokit/plugin-paginate-rest/dist-node/index.js","../node_modules/@actions/glob/lib/internal-globber.js","../node_modules/@azure/core-http/node_modules/uuid/dist/v3.js","../node_modules/@actions/cache/node_modules/@actions/glob/lib/glob.js","../external \"string_decoder\"","../node_modules/brace-expansion/index.js","../node_modules/xmlbuilder/lib/index.js","../src/gradlew.ts","../node_modules/@actions/glob/lib/internal-match-kind.js","../node_modules/@azure/core-http/node_modules/tough-cookie/lib/memstore.js","../node_modules/asynckit/index.js","../src/caches.ts","../node_modules/@azure/core-http/node_modules/tough-cookie/lib/store.js","../node_modules/@opentelemetry/api/build/src/trace/SamplingResult.js","../node_modules/xmlbuilder/lib/XMLStringWriter.js","../node_modules/@azure/core-http/node_modules/tough-cookie/lib/pathMatch.js","../node_modules/xml2js/lib/processors.js","../node_modules/is-plain-object/dist/is-plain-object.js","../external \"assert\"","../node_modules/@opentelemetry/api/build/src/diag/ComponentLogger.js","../node_modules/before-after-hook/lib/register.js","../node_modules/@azure/storage-blob/dist/index.js","../node_modules/@actions/glob/lib/internal-path.js","../node_modules/@actioLine truncated
{"version":3,"sources":["/webpack/bootstrap","../src/cache-extract-entries.ts","../node_modules/@actions/io/lib/io.js","../node_modules/@actions/exec/lib/toolrunner.js","../node_modules/wrappy/wrappy.js","../node_modules/@actions/cache/lib/internal/cacheUtils.js","../external \"tls\"","../(webpack)/ncc/@@notfound.js","../node_modules/xmlbuilder/lib/XMLDTDNotation.js","../node_modules/@opentelemetry/api/build/src/api/propagation.js","../node_modules/@azure/core-http/node_modules/uuid/dist/nil.js","../node_modules/@actions/tool-cache/lib/manifest.js","../node_modules/once/once.js","../node_modules/xmlbuilder/lib/DocumentPosition.js","../node_modules/node-fetch/node_modules/whatwg-url/lib/public-api.js","../node_modules/@azure/core-asynciterator-polyfill/dist-esm/index.js","../node_modules/@actions/core/lib/utils.js","../node_modules/uuid/v1.js","../external \"os\"","../node_modules/@azure/core-http/node_modules/tough-cookie/lib/permuteDomain.js","../node_modules/@azure/core-http/node_modules/uuid/dist/v5.js","../node_modules/asynckit/serial.js","../node_modules/minimatch/minimatch.js","../node_modules/@opentelemetry/api/build/src/trace/link.js","../node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-pattern-helper.js","../src/cache-base.ts","../node_modules/@actions/core/lib/file-command.js","../node_modules/@azure/core-http/node_modules/uuid/dist/version.js","../node_modules/@azure/abort-controller/dist/index.js","../node_modules/@opentelemetry/api/build/src/baggage/utils.js","../node_modules/@actions/cache/lib/internal/cacheHttpClient.js","../node_modules/@opentelemetry/api/build/src/api/diag.js","../node_modules/@actions/github/lib/internal/utils.js","../external \"child_process\"","../src/main.ts","../node_modules/@opentelemetry/api/build/src/context/context.js","../node_modules/uuid/lib/rng.js","../node_modules/tunnel/lib/tunnel.js","../node_modules/@opentelemetry/api/build/src/platform/node/globalThis.js","../node_modules/universalify/index.js","../node_modules/node-fetch/node_modules/webidl-conversions/lib/index.js","../node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js","../node_modules/delayed-stream/lib/delayed_stream.js","../node_modules/asynckit/lib/iterate.js","../node_modules/@opentelemetry/api/build/src/common/Time.js","../node_modules/@opentelemetry/api/build/src/trace/NoopTracerProvider.js","../src/execution.ts","../node_modules/@azure/core-http/node_modules/uuid/dist/v1.js","../node_modules/@azure/core-http/node_modules/uuid/dist/parse.js","../node_modules/@opentelemetry/api/build/src/trace/trace_state.js","../node_modules/xml2js/lib/bom.js","../external \"https\"","../external \"timers\"","../node_modules/@opentelemetry/api/build/src/trace/SpanOptions.js","../node_modules/@actions/http-client/auth.js","../node_modules/@azure/core-auth/dist/index.js","../node_modules/@opentelemetry/api/build/src/diag/consoleLogger.js","../node_modules/@azure/core-http/node_modules/uuid/dist/regex.js","../node_modules/@azure/core-http/node_modules/uuid/dist/v35.js","../node_modules/@azure/core-http/node_modules/uuid/dist/md5.js","../node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-pattern.js","../node_modules/@actions/cache/lib/internal/downloadUtils.js","../node_modules/node-fetch/node_modules/whatwg-url/lib/URL-impl.js","../node_modules/xmlbuilder/lib/XMLNode.js","../node_modules/@actions/github/lib/context.js","../node_modules/@azure/core-tracing/dist/index.js","../src/cache-reporting.ts","../node_modules/xmlbuilder/lib/XMLNodeList.js","../node_modules/semver/semver.js","../node_modules/@actions/glob/lib/glob.js","../src/provision.ts","../node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-glob-options-helper.js","../node_modules/@opentelemetry/api/build/src/common/Exception.js","../external \"buffer\"","../node_modules/@octokit/plugin-paginate-rest/dist-node/index.js","../node_modules/@actions/glob/lib/internal-globber.js","../node_modules/@azure/core-http/node_modules/uuid/dist/v3.js","../node_modules/@actions/cache/node_modules/@actions/glob/lib/glob.js","../external \"string_decoder\"","../node_modules/brace-expansion/index.js","../node_modules/xmlbuilder/lib/index.js","../src/gradlew.ts","../node_modules/@actions/glob/lib/internal-match-kind.js","../node_modules/@azure/core-http/node_modules/tough-cookie/lib/memstore.js","../node_modules/asynckit/index.js","../src/caches.ts","../node_modules/@azure/core-http/node_modules/tough-cookie/lib/store.js","../node_modules/@opentelemetry/api/build/src/trace/SamplingResult.js","../node_modules/xmlbuilder/lib/XMLStringWriter.js","../node_modules/@azure/core-http/node_modules/tough-cookie/lib/pathMatch.js","../node_modules/xml2js/lib/processors.js","../node_modules/is-plain-object/dist/is-plain-object.js","../external \"assert\"","../node_modules/@opentelemetry/api/build/src/diag/ComponentLogger.js","../node_modules/before-after-hook/lib/register.js","../node_modules/@azure/storage-blob/dist/index.js"Line truncated
+1 -1
View File
@@ -1,2 +1,2 @@
require('./sourcemap-register.js');module.exports=function(e,t){"use strict";var a={};function __webpack_require__(t){if(a[t]){return a[t].exports}var i=a[t]={i:t,l:false,exports:{}};var n=true;try{e[t].call(i.exports,i,i.exports,__webpack_require__);n=false}finally{if(n)delete a[t]}i.l=true;return i.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(878)}return startup()}([,function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a(function(t){t(e)})}return new(a||(a=Promise))(function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const r=a(357);const p=o(a(129));const l=o(a(622));const c=a(669);const d=o(a(672));const u=c.promisify(p.exec);const m=c.promisify(p.execFile);function cp(e,t,a={}){return s(this,void 0,void 0,function*(){const{force:i,recursive:n,copySourceDirectory:o}=readCopyOptions(a);const s=(yield d.exists(t))?yield d.stat(t):null;if(s&&s.isFile()&&!i){return}const r=s&&s.isDirectory()&&o?l.join(t,l.basename(e)):t;if(!(yield d.exists(e))){throw new Error(`no such file or directory: ${e}`)}const p=yield d.stat(e);if(p.isDirectory()){if(!n){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,r,0,i)}}else{if(l.relative(e,r)===""){throw new Error(`'${r}' and '${e}' are the same file`)}yield copyFile(e,r,i)}})}t.cp=cp;function mv(e,t,a={}){return s(this,void 0,void 0,function*(){if(yield d.exists(t)){let i=true;if(yield d.isDirectory(t)){t=l.join(t,l.basename(e));i=yield d.exists(t)}if(i){if(a.force==null||a.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(l.dirname(t));yield d.rename(e,t)})}t.mv=mv;function rmRF(e){return s(this,void 0,void 0,function*(){if(d.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const t=d.getCmdPath();if(yield d.isDirectory(e,true)){yield u(`${t} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}})}else{yield u(`${t} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}}catch(e){if(e.code!=="ENOENT")throw e}try{yield d.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield d.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield m(`rm`,[`-rf`,`${e}`])}else{yield d.unlink(e)}}})}t.rmRF=rmRF;function mkdirP(e){return s(this,void 0,void 0,function*(){r.ok(e,"a path argument must be provided");yield d.mkdir(e,{recursive:true})})}t.mkdirP=mkdirP;function which(e,t){return s(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(d.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return t}const a=yield findInPath(e);if(a&&a.length>0){return a[0]}return""})}t.which=which;function findInPath(e){return s(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(d.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(l.delimiter)){if(e){t.push(e)}}}if(d.isRooted(e)){const a=yield d.tryGetExecutablePath(e,t);if(a){return[a]}return[]}if(e.includes(l.sep)){return[]}const a=[];if(process.env.PATH){for(const e of process.env.PATH.split(l.delimiter)){if(e){a.push(e)}}}const i=[];for(const n of a){const a=yield d.tryGetExecutablePath(l.join(n,e),t);if(a){i.push(a)}}return i})}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const a=Boolean(e.recursive);const i=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:a,copySourceDirectory:i}}function cpDirLine truncated
require('./sourcemap-register.js');module.exports=function(e,t){"use strict";var a={};function __webpack_require__(t){if(a[t]){return a[t].exports}var i=a[t]={i:t,l:false,exports:{}};var n=true;try{e[t].call(i.exports,i,i.exports,__webpack_require__);n=false}finally{if(n)delete a[t]}i.l=true;return i.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(878)}return startup()}([function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a(function(t){t(e)})}return new(a||(a=Promise))(function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())})};var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.ConfigurationCacheEntryExtractor=t.GradleHomeEntryExtractor=void 0;const p=r(a(622));const l=r(a(747));const c=o(a(470));const d=o(a(281));const u=a(101);const m=a(452);const f="GRADLE_BUILD_ACTION_SKIP_RESTORE";class ExtractedCacheEntry{constructor(e,t,a){this.artifactType=e;this.pattern=t;this.cacheKey=a}}class ExtractedCacheEntryMetadata{constructor(){this.entries=[]}}class ExtractedCacheEntryDefinition{constructor(e,t,a){this.uniqueFileNames=true;this.artifactType=e;this.pattern=t;this.bundle=a}withNonUniqueFileNames(){this.uniqueFileNames=false;return this}}class AbstractEntryExtractor{constructor(e,t){this.gradleUserHome=e;this.extractorName=t}restore(e){return s(this,void 0,void 0,function*(){const t=this.loadExtractedCacheEntries();const a=[];for(const i of t){const t=i.artifactType;const n=e.entry(i.pattern);const o=process.env[f]||"";if(o.includes(t)){c.info(`Not restoring extracted cache entry for ${t}`);n.markRequested("SKIP_RESTORE")}else{a.push(this.awaitForDebugging(this.restoreExtractedCacheEntry(t,i.cacheKey,i.pattern,n)))}}this.saveMetadataForCacheResults(yield Promise.all(a))})}restoreExtractedCacheEntry(e,t,a,i){return s(this,void 0,void 0,function*(){i.markRequested(t);const n=yield(0,m.restoreCache)([a],t);if(n){c.info(`Restored ${e} with key ${t} to ${a}`);i.markRestored(n.key,n.size);return new ExtractedCacheEntry(e,a,t)}else{c.info(`Did not restore ${e} with key ${t} to ${a}`);return new ExtractedCacheEntry(e,a,undefined)}})}extract(e){return s(this,void 0,void 0,function*(){const t=this.getExtractedCacheEntryDefinitions();(0,m.cacheDebug)(`Extracting cache entries for ${this.extractorName}: ${JSON.stringify(t,null,2)}`);const a=this.loadExtractedCacheEntries();const i=[];for(const n of t){const t=n.artifactType;const o=n.pattern;const s=yield d.create(o,{implicitDescendants:false,followSymbolicLinks:false});const r=yield s.glob();if(r.length===0){(0,m.cacheDebug)(`No files found to cache for ${t}`);continue}if(n.bundle){i.push(this.awaitForDebugging(this.saveExtractedCacheEntry(r,t,o,n.uniqueFileNames,a,e.entry(o))))}else{for(const o of r){i.push(this.awaitForDebugging(this.saveExtractedCacheEntry([o],t,o,n.uniqueFileNames,a,e.entry(o))))}}}this.saveMetadataForCacheResults(yield Promise.all(i))})}saveExtractedCacheEntry(e,t,a,i,n,o){var r;return s(this,void 0,void 0,function*(){const s=i?this.createCacheKeyFromFileNames(t,e):yield this.createCacheKeyFromFileContents(t,a);const p=(r=n.find(e=>e.artifactType===t&&e.pattern===a))===null||r===void 0?void 0:r.cacheKey;if(p===s){(0,m.cacheDebug)(`No change to previously restored ${t}. Not saving.`)}else{c.info(`Caching ${t} with path '${a}' and cache key: ${s}`);const e=yield(0,m.saveCache)([a],s);if(e!==undefined){o.markSaved(e.key,e.size)}}for(const t of e){(0,m.tryDelete)(t)}return new ExtractedCacheEntry(t,a,s)})}createCacheKeyFromFileNames(e,t){const a=(0,m.getCacheKeyPrefix)();const i=t.map(e=>p.default.relative(this.gradleUserHome,e));const n=(0,m.hashFileNames)(i);(0,m.cacheDebug)(`Generating cache key for ${e} from file names: ${i}`);return`${a}${e}-${n}`}createCacheKeyFromFileContents(e,t){return s(this,void 0,void 0,function*(){const a=(0,m.getCacheKeyPrefix)();const i=yield d.hashFiles(t);(0,m.cacheDebug)(`Generating cache key for ${e} from files matching: ${t}`);return`${a}${e}-${i}`})}awaitForDebugging(e){return s(this,void 0,void 0,function*(){if((0,m.isCacheDebuggingEnabled)()){yield e}return e})}loadExtractedCacheEntrieLine truncated
//# sourceMappingURL=index.js.map
+1 -1
View File
@@ -1 +1 @@
{"version":3,"sources":["/webpack/bootstrap","../node_modules/@actions/io/lib/io.js","../node_modules/@actions/exec/lib/toolrunner.js","../node_modules/wrappy/wrappy.js","../node_modules/@actions/cache/lib/internal/cacheUtils.js","../external \"tls\"","../(webpack)/ncc/@@notfound.js","../node_modules/xmlbuilder/lib/XMLDTDNotation.js","../node_modules/@opentelemetry/api/build/src/api/propagation.js","../node_modules/@azure/core-http/node_modules/uuid/dist/nil.js","../node_modules/once/once.js","../node_modules/xmlbuilder/lib/DocumentPosition.js","../node_modules/node-fetch/node_modules/whatwg-url/lib/public-api.js","../node_modules/@azure/core-asynciterator-polyfill/dist-esm/index.js","../node_modules/@actions/core/lib/utils.js","../node_modules/uuid/v1.js","../external \"os\"","../node_modules/@azure/core-http/node_modules/tough-cookie/lib/permuteDomain.js","../node_modules/@azure/core-http/node_modules/uuid/dist/v5.js","../node_modules/asynckit/serial.js","../node_modules/minimatch/minimatch.js","../node_modules/@opentelemetry/api/build/src/trace/link.js","../node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-pattern-helper.js","../src/cache-base.ts","../node_modules/@actions/core/lib/file-command.js","../node_modules/@azure/core-http/node_modules/uuid/dist/version.js","../node_modules/@azure/abort-controller/dist/index.js","../node_modules/@opentelemetry/api/build/src/baggage/utils.js","../node_modules/@actions/cache/lib/internal/cacheHttpClient.js","../node_modules/@opentelemetry/api/build/src/api/diag.js","../node_modules/@actions/github/lib/internal/utils.js","../external \"child_process\"","../node_modules/@opentelemetry/api/build/src/context/context.js","../node_modules/uuid/lib/rng.js","../node_modules/tunnel/lib/tunnel.js","../src/cache-utils.ts","../node_modules/@opentelemetry/api/build/src/platform/node/globalThis.js","../node_modules/universalify/index.js","../node_modules/node-fetch/node_modules/webidl-conversions/lib/index.js","../node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js","../node_modules/delayed-stream/lib/delayed_stream.js","../node_modules/asynckit/lib/iterate.js","../node_modules/@opentelemetry/api/build/src/common/Time.js","../node_modules/@opentelemetry/api/build/src/trace/NoopTracerProvider.js","../node_modules/@azure/core-http/node_modules/uuid/dist/v1.js","../node_modules/@azure/core-http/node_modules/uuid/dist/parse.js","../node_modules/@opentelemetry/api/build/src/trace/trace_state.js","../node_modules/xml2js/lib/bom.js","../external \"https\"","../external \"timers\"","../node_modules/@opentelemetry/api/build/src/trace/SpanOptions.js","../node_modules/@actions/http-client/auth.js","../node_modules/@azure/core-auth/dist/index.js","../node_modules/@opentelemetry/api/build/src/diag/consoleLogger.js","../node_modules/@azure/core-http/node_modules/uuid/dist/regex.js","../node_modules/@azure/core-http/node_modules/uuid/dist/v35.js","../node_modules/@azure/core-http/node_modules/uuid/dist/md5.js","../node_modules/@actions/cache/lib/internal/downloadUtils.js","../node_modules/node-fetch/node_modules/whatwg-url/lib/URL-impl.js","../node_modules/xmlbuilder/lib/XMLNode.js","../node_modules/@actions/github/lib/context.js","../node_modules/@azure/core-tracing/dist/index.js","../src/cache-reporting.ts","../node_modules/xmlbuilder/lib/XMLNodeList.js","../node_modules/semver/semver.js","../node_modules/@actions/glob/lib/glob.js","../node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-glob-options-helper.js","../external \"buffer\"","../node_modules/@octokit/plugin-paginate-rest/dist-node/index.js","../node_modules/@actions/glob/lib/internal-globber.js","../node_modules/@azure/core-http/node_modules/uuid/dist/v3.js","../node_modules/@actions/cache/node_modules/@actions/glob/lib/glob.js","../external \"string_decoder\"","../node_modules/brace-expansion/index.js","../node_modules/xmlbuilder/lib/index.js","../node_modules/@actions/glob/lib/internal-match-kind.js","../node_modules/@azure/core-http/node_modules/tough-cookie/lib/memstore.js","../node_modules/asynckit/index.js","../src/caches.ts","../node_modules/@azure/core-http/node_modules/tough-cookie/lib/store.js","../node_modules/@opentelemetry/api/build/src/trace/SamplingResult.js","../node_modules/xmlbuilder/lib/XMLStringWriter.js","../node_modules/@azure/core-http/node_modules/tough-cookie/lib/pathMatch.js","../node_modules/xml2js/lib/processors.js","../node_modules/is-plain-object/dist/is-plain-object.js","../external \"assert\"","../node_modules/@opentelemetry/api/build/src/diag/ComponentLogger.js","../node_modules/before-after-hook/lib/register.js","../node_modules/@azure/storage-blob/dist/index.js","../node_modules/@actions/glob/lib/internal-path.js","../node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-search-state.js","../node_modules/@octokit/endpoint/dist-node/index.js","../node_modules/@azure/core-http/node_modules/tough-cookie/lib/cookie.js","../node_modules/@opentLine truncated
{"version":3,"sources":["/webpack/bootstrap","../src/cache-extract-entries.ts","../node_modules/@actions/io/lib/io.js","../node_modules/@actions/exec/lib/toolrunner.js","../node_modules/wrappy/wrappy.js","../node_modules/@actions/cache/lib/internal/cacheUtils.js","../external \"tls\"","../(webpack)/ncc/@@notfound.js","../node_modules/xmlbuilder/lib/XMLDTDNotation.js","../node_modules/@opentelemetry/api/build/src/api/propagation.js","../node_modules/@azure/core-http/node_modules/uuid/dist/nil.js","../node_modules/once/once.js","../node_modules/xmlbuilder/lib/DocumentPosition.js","../node_modules/node-fetch/node_modules/whatwg-url/lib/public-api.js","../node_modules/@azure/core-asynciterator-polyfill/dist-esm/index.js","../node_modules/@actions/core/lib/utils.js","../node_modules/uuid/v1.js","../external \"os\"","../node_modules/@azure/core-http/node_modules/tough-cookie/lib/permuteDomain.js","../node_modules/@azure/core-http/node_modules/uuid/dist/v5.js","../node_modules/asynckit/serial.js","../node_modules/minimatch/minimatch.js","../node_modules/@opentelemetry/api/build/src/trace/link.js","../node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-pattern-helper.js","../src/cache-base.ts","../node_modules/@actions/core/lib/file-command.js","../node_modules/@azure/core-http/node_modules/uuid/dist/version.js","../node_modules/@azure/abort-controller/dist/index.js","../node_modules/@opentelemetry/api/build/src/baggage/utils.js","../node_modules/@actions/cache/lib/internal/cacheHttpClient.js","../node_modules/@opentelemetry/api/build/src/api/diag.js","../node_modules/@actions/github/lib/internal/utils.js","../external \"child_process\"","../node_modules/@opentelemetry/api/build/src/context/context.js","../node_modules/uuid/lib/rng.js","../node_modules/tunnel/lib/tunnel.js","../node_modules/@opentelemetry/api/build/src/platform/node/globalThis.js","../node_modules/universalify/index.js","../node_modules/node-fetch/node_modules/webidl-conversions/lib/index.js","../node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js","../node_modules/delayed-stream/lib/delayed_stream.js","../node_modules/asynckit/lib/iterate.js","../node_modules/@opentelemetry/api/build/src/common/Time.js","../node_modules/@opentelemetry/api/build/src/trace/NoopTracerProvider.js","../node_modules/@azure/core-http/node_modules/uuid/dist/v1.js","../node_modules/@azure/core-http/node_modules/uuid/dist/parse.js","../node_modules/@opentelemetry/api/build/src/trace/trace_state.js","../node_modules/xml2js/lib/bom.js","../external \"https\"","../external \"timers\"","../node_modules/@opentelemetry/api/build/src/trace/SpanOptions.js","../node_modules/@actions/http-client/auth.js","../node_modules/@azure/core-auth/dist/index.js","../node_modules/@opentelemetry/api/build/src/diag/consoleLogger.js","../node_modules/@azure/core-http/node_modules/uuid/dist/regex.js","../node_modules/@azure/core-http/node_modules/uuid/dist/v35.js","../node_modules/@azure/core-http/node_modules/uuid/dist/md5.js","../node_modules/@actions/cache/lib/internal/downloadUtils.js","../node_modules/node-fetch/node_modules/whatwg-url/lib/URL-impl.js","../node_modules/xmlbuilder/lib/XMLNode.js","../node_modules/@actions/github/lib/context.js","../node_modules/@azure/core-tracing/dist/index.js","../src/cache-reporting.ts","../node_modules/xmlbuilder/lib/XMLNodeList.js","../node_modules/semver/semver.js","../node_modules/@actions/glob/lib/glob.js","../node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-glob-options-helper.js","../node_modules/@opentelemetry/api/build/src/common/Exception.js","../external \"buffer\"","../node_modules/@octokit/plugin-paginate-rest/dist-node/index.js","../node_modules/@actions/glob/lib/internal-globber.js","../node_modules/@azure/core-http/node_modules/uuid/dist/v3.js","../node_modules/@actions/cache/node_modules/@actions/glob/lib/glob.js","../external \"string_decoder\"","../node_modules/brace-expansion/index.js","../node_modules/xmlbuilder/lib/index.js","../node_modules/@actions/glob/lib/internal-match-kind.js","../node_modules/@azure/core-http/node_modules/tough-cookie/lib/memstore.js","../node_modules/asynckit/index.js","../src/caches.ts","../node_modules/@azure/core-http/node_modules/tough-cookie/lib/store.js","../node_modules/@opentelemetry/api/build/src/trace/SamplingResult.js","../node_modules/xmlbuilder/lib/XMLStringWriter.js","../node_modules/@azure/core-http/node_modules/tough-cookie/lib/pathMatch.js","../node_modules/xml2js/lib/processors.js","../node_modules/is-plain-object/dist/is-plain-object.js","../external \"assert\"","../node_modules/@opentelemetry/api/build/src/diag/ComponentLogger.js","../node_modules/before-after-hook/lib/register.js","../node_modules/@azure/storage-blob/dist/index.js","../node_modules/@actions/glob/lib/internal-path.js","../node_modules/@actions/cache/node_modules/@actions/glob/lib/internal-search-state.js","../node_modules/@octokit/endpoint/dist-node/index.js","../node_modules/@azuLine truncated