@@ -3730,10 +3730,7 @@ const options_1 = __webpack_require__(538);
3730
3730
const requestUtils_1 = __webpack_require__(899);
3731
3731
const versionSalt = '1.0';
3732
3732
function getCacheApiUrl(resource) {
3733
- // Ideally we just use ACTIONS_CACHE_URL
3734
- const baseUrl = (process.env['ACTIONS_CACHE_URL'] ||
3735
- process.env['ACTIONS_RUNTIME_URL'] ||
3736
- '').replace('pipelines', 'artifactcache');
3733
+ const baseUrl = process.env['ACTIONS_CACHE_URL'] || '';
3737
3734
if (!baseUrl) {
3738
3735
throw new Error('Cache Service Url not found, unable to restore cache.');
3739
3736
}
@@ -5932,7 +5929,35 @@ module.exports = {
5932
5929
/* 193 */,
5933
5930
/* 194 */,
5934
5931
/* 195 */,
5935
- /* 196 */,
5932
+ /* 196 */
5933
+ /***/ (function(__unusedmodule, exports) {
5934
+
5935
+ "use strict";
5936
+
5937
+ Object.defineProperty(exports, "__esModule", { value: true });
5938
+ exports.STATE_GPG_PRIVATE_KEY_FINGERPRINT = exports.INPUT_JOB_STATUS = exports.INPUT_CACHE = exports.INPUT_DEFAULT_GPG_PASSPHRASE = exports.INPUT_DEFAULT_GPG_PRIVATE_KEY = exports.INPUT_GPG_PASSPHRASE = exports.INPUT_GPG_PRIVATE_KEY = exports.INPUT_OVERWRITE_SETTINGS = exports.INPUT_SETTINGS_PATH = exports.INPUT_SERVER_PASSWORD = exports.INPUT_SERVER_USERNAME = exports.INPUT_SERVER_ID = exports.INPUT_CHECK_LATEST = exports.INPUT_JDK_FILE = exports.INPUT_DISTRIBUTION = exports.INPUT_JAVA_PACKAGE = exports.INPUT_ARCHITECTURE = exports.INPUT_JAVA_VERSION = exports.MACOS_JAVA_CONTENT_POSTFIX = void 0;
5939
+ exports.MACOS_JAVA_CONTENT_POSTFIX = 'Contents/Home';
5940
+ exports.INPUT_JAVA_VERSION = 'java-version';
5941
+ exports.INPUT_ARCHITECTURE = 'architecture';
5942
+ exports.INPUT_JAVA_PACKAGE = 'java-package';
5943
+ exports.INPUT_DISTRIBUTION = 'distribution';
5944
+ exports.INPUT_JDK_FILE = 'jdkFile';
5945
+ exports.INPUT_CHECK_LATEST = 'check-latest';
5946
+ exports.INPUT_SERVER_ID = 'server-id';
5947
+ exports.INPUT_SERVER_USERNAME = 'server-username';
5948
+ exports.INPUT_SERVER_PASSWORD = 'server-password';
5949
+ exports.INPUT_SETTINGS_PATH = 'settings-path';
5950
+ exports.INPUT_OVERWRITE_SETTINGS = 'overwrite-settings';
5951
+ exports.INPUT_GPG_PRIVATE_KEY = 'gpg-private-key';
5952
+ exports.INPUT_GPG_PASSPHRASE = 'gpg-passphrase';
5953
+ exports.INPUT_DEFAULT_GPG_PRIVATE_KEY = undefined;
5954
+ exports.INPUT_DEFAULT_GPG_PASSPHRASE = 'GPG_PASSPHRASE';
5955
+ exports.INPUT_CACHE = 'cache';
5956
+ exports.INPUT_JOB_STATUS = 'job-status';
5957
+ exports.STATE_GPG_PRIVATE_KEY_FINGERPRINT = 'gpg-private-key-fingerprint';
5958
+
5959
+
5960
+ /***/ }),
5936
5961
/* 197 */
5937
5962
/***/ (function(__unusedmodule, exports, __webpack_require__) {
5938
5963
@@ -6092,7 +6117,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6092
6117
exports.run = void 0;
6093
6118
const core = __importStar(__webpack_require__(470));
6094
6119
const gpg = __importStar(__webpack_require__(884));
6095
- const constants = __importStar(__webpack_require__(694 ));
6120
+ const constants = __importStar(__webpack_require__(196 ));
6096
6121
const util_1 = __webpack_require__(322);
6097
6122
const cache_1 = __webpack_require__(913);
6098
6123
function removePrivateKeyFromKeychain() {
@@ -6889,7 +6914,8 @@ function downloadCacheStorageSDK(archiveLocation, archivePath, options) {
6889
6914
//
6890
6915
// If the file exceeds the buffer maximum length (~1 GB on 32-bit systems and ~2 GB
6891
6916
// on 64-bit systems), split the download into multiple segments
6892
- const maxSegmentSize = buffer.constants.MAX_LENGTH;
6917
+ // ~2 GB = 2147483647, beyond this, we start getting out of range error. So, capping it accordingly.
6918
+ const maxSegmentSize = Math.min(2147483647, buffer.constants.MAX_LENGTH);
6893
6919
const downloadProgress = new DownloadProgress(contentLength);
6894
6920
const fd = fs.openSync(archivePath, 'w');
6895
6921
try {
@@ -9110,14 +9136,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
9110
9136
return (mod && mod.__esModule) ? mod : { "default": mod };
9111
9137
};
9112
9138
Object.defineProperty(exports, "__esModule", { value: true });
9113
- exports.isJobStatusSuccess = exports.getToolcachePath = exports.isVersionSatisfies = exports.getDownloadArchiveExtension = exports.extractJdkFile = exports.getVersionFromToolcachePath = exports.getBooleanInput = exports.getTempDir = void 0;
9139
+ exports.isCacheFeatureAvailable = exports.isGhes = exports. isJobStatusSuccess = exports.getToolcachePath = exports.isVersionSatisfies = exports.getDownloadArchiveExtension = exports.extractJdkFile = exports.getVersionFromToolcachePath = exports.getBooleanInput = exports.getTempDir = void 0;
9114
9140
const os_1 = __importDefault(__webpack_require__(87));
9115
9141
const path_1 = __importDefault(__webpack_require__(622));
9116
9142
const fs = __importStar(__webpack_require__(747));
9117
9143
const semver = __importStar(__webpack_require__(876));
9144
+ const cache = __importStar(__webpack_require__(692));
9118
9145
const core = __importStar(__webpack_require__(470));
9119
9146
const tc = __importStar(__webpack_require__(533));
9120
- const constants_1 = __webpack_require__(694 );
9147
+ const constants_1 = __webpack_require__(196 );
9121
9148
function getTempDir() {
9122
9149
let tempDirectory = process.env['RUNNER_TEMP'] || os_1.default.tmpdir();
9123
9150
return tempDirectory;
@@ -9187,6 +9214,24 @@ function isJobStatusSuccess() {
9187
9214
return jobStatus === 'success';
9188
9215
}
9189
9216
exports.isJobStatusSuccess = isJobStatusSuccess;
9217
+ function isGhes() {
9218
+ const ghUrl = new URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com');
9219
+ return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM';
9220
+ }
9221
+ exports.isGhes = isGhes;
9222
+ function isCacheFeatureAvailable() {
9223
+ if (!cache.isFeatureAvailable()) {
9224
+ if (isGhes()) {
9225
+ throw new Error('Caching is only supported on GHES version >= 3.5. If you are on a version >= 3.5, please check with your GHES admin if the Actions cache service is enabled or not.');
9226
+ }
9227
+ else {
9228
+ core.warning('The runner was not able to contact the cache service. Caching will be skipped');
9229
+ }
9230
+ return false;
9231
+ }
9232
+ return true;
9233
+ }
9234
+ exports.isCacheFeatureAvailable = isCacheFeatureAvailable;
9190
9235
9191
9236
9192
9237
/***/ }),
@@ -41953,7 +41998,7 @@ __exportStar(__webpack_require__(220), exports);
41953
41998
__exportStar(__webpack_require__(932), exports);
41954
41999
__exportStar(__webpack_require__(975), exports);
41955
42000
__exportStar(__webpack_require__(207), exports);
41956
- __exportStar(__webpack_require__(773 ), exports);
42001
+ __exportStar(__webpack_require__(694 ), exports);
41957
42002
__exportStar(__webpack_require__(695), exports);
41958
42003
var spancontext_utils_1 = __webpack_require__(629);
41959
42004
Object.defineProperty(exports, "isSpanContextValid", { enumerable: true, get: function () { return spancontext_utils_1.isSpanContextValid; } });
@@ -53506,6 +53551,15 @@ function checkKey(key) {
53506
53551
throw new ValidationError(`Key Validation Error: ${key} cannot contain commas.`);
53507
53552
}
53508
53553
}
53554
+ /**
53555
+ * isFeatureAvailable to check the presence of Actions cache service
53556
+ *
53557
+ * @returns boolean return true if Actions cache service feature is available, otherwise false
53558
+ */
53559
+ function isFeatureAvailable() {
53560
+ return !!process.env['ACTIONS_CACHE_URL'];
53561
+ }
53562
+ exports.isFeatureAvailable = isFeatureAvailable;
53509
53563
/**
53510
53564
* Restores cache from keys
53511
53565
*
@@ -53626,28 +53680,23 @@ exports.saveCache = saveCache;
53626
53680
53627
53681
"use strict";
53628
53682
53683
+ /*
53684
+ * Copyright The OpenTelemetry Authors
53685
+ *
53686
+ * Licensed under the Apache License, Version 2.0 (the "License");
53687
+ * you may not use this file except in compliance with the License.
53688
+ * You may obtain a copy of the License at
53689
+ *
53690
+ * https://www.apache.org/licenses/LICENSE-2.0
53691
+ *
53692
+ * Unless required by applicable law or agreed to in writing, software
53693
+ * distributed under the License is distributed on an "AS IS" BASIS,
53694
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
53695
+ * See the License for the specific language governing permissions and
53696
+ * limitations under the License.
53697
+ */
53629
53698
Object.defineProperty(exports, "__esModule", { value: true });
53630
- exports.STATE_GPG_PRIVATE_KEY_FINGERPRINT = exports.INPUT_JOB_STATUS = exports.INPUT_CACHE = exports.INPUT_DEFAULT_GPG_PASSPHRASE = exports.INPUT_DEFAULT_GPG_PRIVATE_KEY = exports.INPUT_GPG_PASSPHRASE = exports.INPUT_GPG_PRIVATE_KEY = exports.INPUT_OVERWRITE_SETTINGS = exports.INPUT_SETTINGS_PATH = exports.INPUT_SERVER_PASSWORD = exports.INPUT_SERVER_USERNAME = exports.INPUT_SERVER_ID = exports.INPUT_CHECK_LATEST = exports.INPUT_JDK_FILE = exports.INPUT_DISTRIBUTION = exports.INPUT_JAVA_PACKAGE = exports.INPUT_ARCHITECTURE = exports.INPUT_JAVA_VERSION = exports.MACOS_JAVA_CONTENT_POSTFIX = void 0;
53631
- exports.MACOS_JAVA_CONTENT_POSTFIX = 'Contents/Home';
53632
- exports.INPUT_JAVA_VERSION = 'java-version';
53633
- exports.INPUT_ARCHITECTURE = 'architecture';
53634
- exports.INPUT_JAVA_PACKAGE = 'java-package';
53635
- exports.INPUT_DISTRIBUTION = 'distribution';
53636
- exports.INPUT_JDK_FILE = 'jdkFile';
53637
- exports.INPUT_CHECK_LATEST = 'check-latest';
53638
- exports.INPUT_SERVER_ID = 'server-id';
53639
- exports.INPUT_SERVER_USERNAME = 'server-username';
53640
- exports.INPUT_SERVER_PASSWORD = 'server-password';
53641
- exports.INPUT_SETTINGS_PATH = 'settings-path';
53642
- exports.INPUT_OVERWRITE_SETTINGS = 'overwrite-settings';
53643
- exports.INPUT_GPG_PRIVATE_KEY = 'gpg-private-key';
53644
- exports.INPUT_GPG_PASSPHRASE = 'gpg-passphrase';
53645
- exports.INPUT_DEFAULT_GPG_PRIVATE_KEY = undefined;
53646
- exports.INPUT_DEFAULT_GPG_PASSPHRASE = 'GPG_PASSPHRASE';
53647
- exports.INPUT_CACHE = 'cache';
53648
- exports.INPUT_JOB_STATUS = 'job-status';
53649
- exports.STATE_GPG_PRIVATE_KEY_FINGERPRINT = 'gpg-private-key-fingerprint';
53650
-
53699
+ //# sourceMappingURL=tracer_provider.js.map
53651
53700
53652
53701
/***/ }),
53653
53702
/* 695 */
@@ -55714,30 +55763,7 @@ module.exports = function(dst, src) {
55714
55763
/* 770 */,
55715
55764
/* 771 */,
55716
55765
/* 772 */,
55717
- /* 773 */
55718
- /***/ (function(__unusedmodule, exports) {
55719
-
55720
- "use strict";
55721
-
55722
- /*
55723
- * Copyright The OpenTelemetry Authors
55724
- *
55725
- * Licensed under the Apache License, Version 2.0 (the "License");
55726
- * you may not use this file except in compliance with the License.
55727
- * You may obtain a copy of the License at
55728
- *
55729
- * https://www.apache.org/licenses/LICENSE-2.0
55730
- *
55731
- * Unless required by applicable law or agreed to in writing, software
55732
- * distributed under the License is distributed on an "AS IS" BASIS,
55733
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
55734
- * See the License for the specific language governing permissions and
55735
- * limitations under the License.
55736
- */
55737
- Object.defineProperty(exports, "__esModule", { value: true });
55738
- //# sourceMappingURL=tracer_provider.js.map
55739
-
55740
- /***/ }),
55766
+ /* 773 */,
55741
55767
/* 774 */,
55742
55768
/* 775 */,
55743
55769
/* 776 */,
0 commit comments