mirror of
https://github.com/actions/setup-python.git
synced 2025-04-21 17:23:52 +00:00
Fix typos found by codespell
This commit is contained in:
parent
61a6322f88
commit
6b5cd18ec8
48
dist/setup/index.js
vendored
48
dist/setup/index.js
vendored
@ -121,7 +121,7 @@ function restoreCache(paths, primaryKey, restoreKeys, options, enableCrossOsArch
|
|||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Supress all non-validation cache related errors because caching should be optional
|
// Suppress all non-validation cache related errors because caching should be optional
|
||||||
core.warning(`Failed to restore: ${error.message}`);
|
core.warning(`Failed to restore: ${error.message}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1155,7 +1155,7 @@ function getTarArgs(tarPath, compressionMethod, type, archivePath = '') {
|
|||||||
const cacheFileName = utils.getCacheFileName(compressionMethod);
|
const cacheFileName = utils.getCacheFileName(compressionMethod);
|
||||||
const tarFile = 'cache.tar';
|
const tarFile = 'cache.tar';
|
||||||
const workingDirectory = getWorkingDirectory();
|
const workingDirectory = getWorkingDirectory();
|
||||||
// Speficic args for BSD tar on windows for workaround
|
// Specific args for BSD tar on windows for workaround
|
||||||
const BSD_TAR_ZSTD = tarPath.type === constants_1.ArchiveToolType.BSD &&
|
const BSD_TAR_ZSTD = tarPath.type === constants_1.ArchiveToolType.BSD &&
|
||||||
compressionMethod !== constants_1.CompressionMethod.Gzip &&
|
compressionMethod !== constants_1.CompressionMethod.Gzip &&
|
||||||
IS_WINDOWS;
|
IS_WINDOWS;
|
||||||
@ -3410,7 +3410,7 @@ tok('GTLT')
|
|||||||
src[t.GTLT] = '((?:<|>)?=?)'
|
src[t.GTLT] = '((?:<|>)?=?)'
|
||||||
|
|
||||||
// Something like "2.*" or "1.2.x".
|
// Something like "2.*" or "1.2.x".
|
||||||
// Note that "x.x" is a valid xRange identifer, meaning "any version"
|
// Note that "x.x" is a valid xRange identifier, meaning "any version"
|
||||||
// Only the first item is strictly required.
|
// Only the first item is strictly required.
|
||||||
tok('XRANGEIDENTIFIERLOOSE')
|
tok('XRANGEIDENTIFIERLOOSE')
|
||||||
src[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + '|x|X|\\*'
|
src[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + '|x|X|\\*'
|
||||||
@ -4760,7 +4760,7 @@ function outside (version, range, hilo, options) {
|
|||||||
throw new TypeError('Must provide a hilo val of "<" or ">"')
|
throw new TypeError('Must provide a hilo val of "<" or ">"')
|
||||||
}
|
}
|
||||||
|
|
||||||
// If it satisifes the range it is not outside
|
// If it satisfies the range it is not outside
|
||||||
if (satisfies(version, range, options)) {
|
if (satisfies(version, range, options)) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
@ -5633,7 +5633,7 @@ class Summary {
|
|||||||
/**
|
/**
|
||||||
* If the summary buffer is empty
|
* If the summary buffer is empty
|
||||||
*
|
*
|
||||||
* @returns {boolen} true if the buffer is empty
|
* @returns {boolean} true if the buffer is empty
|
||||||
*/
|
*/
|
||||||
isEmptyBuffer() {
|
isEmptyBuffer() {
|
||||||
return this._buffer.length === 0;
|
return this._buffer.length === 0;
|
||||||
@ -5722,10 +5722,10 @@ class Summary {
|
|||||||
return this.addRaw(element).addEOL();
|
return this.addRaw(element).addEOL();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Adds a collapsable HTML details element to the summary buffer
|
* Adds a collapsible HTML details element to the summary buffer
|
||||||
*
|
*
|
||||||
* @param {string} label text for the closed state
|
* @param {string} label text for the closed state
|
||||||
* @param {string} content collapsable content
|
* @param {string} content collapsible content
|
||||||
*
|
*
|
||||||
* @returns {Summary} summary instance
|
* @returns {Summary} summary instance
|
||||||
*/
|
*/
|
||||||
@ -11231,7 +11231,7 @@ tok('GTLT')
|
|||||||
src[t.GTLT] = '((?:<|>)?=?)'
|
src[t.GTLT] = '((?:<|>)?=?)'
|
||||||
|
|
||||||
// Something like "2.*" or "1.2.x".
|
// Something like "2.*" or "1.2.x".
|
||||||
// Note that "x.x" is a valid xRange identifer, meaning "any version"
|
// Note that "x.x" is a valid xRange identifier, meaning "any version"
|
||||||
// Only the first item is strictly required.
|
// Only the first item is strictly required.
|
||||||
tok('XRANGEIDENTIFIERLOOSE')
|
tok('XRANGEIDENTIFIERLOOSE')
|
||||||
src[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + '|x|X|\\*'
|
src[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + '|x|X|\\*'
|
||||||
@ -12581,7 +12581,7 @@ function outside (version, range, hilo, options) {
|
|||||||
throw new TypeError('Must provide a hilo val of "<" or ">"')
|
throw new TypeError('Must provide a hilo val of "<" or ">"')
|
||||||
}
|
}
|
||||||
|
|
||||||
// If it satisifes the range it is not outside
|
// If it satisfies the range it is not outside
|
||||||
if (satisfies(version, range, options)) {
|
if (satisfies(version, range, options)) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
@ -13155,7 +13155,7 @@ function isSASCredential(credential) {
|
|||||||
function isTokenCredential(credential) {
|
function isTokenCredential(credential) {
|
||||||
// Check for an object with a 'getToken' function and possibly with
|
// Check for an object with a 'getToken' function and possibly with
|
||||||
// a 'signRequest' function. We do this check to make sure that
|
// a 'signRequest' function. We do this check to make sure that
|
||||||
// a ServiceClientCredentials implementor (like TokenClientCredentials
|
// a ServiceClientCredentials implementer (like TokenClientCredentials
|
||||||
// in ms-rest-nodeauth) doesn't get mistaken for a TokenCredential if
|
// in ms-rest-nodeauth) doesn't get mistaken for a TokenCredential if
|
||||||
// it doesn't actually implement TokenCredential also.
|
// it doesn't actually implement TokenCredential also.
|
||||||
const castCredential = credential;
|
const castCredential = credential;
|
||||||
@ -14756,7 +14756,7 @@ class WebResource {
|
|||||||
if (typeof queryParameters !== "object") {
|
if (typeof queryParameters !== "object") {
|
||||||
throw new Error(`options.queryParameters must be of type object. It should be a JSON object ` +
|
throw new Error(`options.queryParameters must be of type object. It should be a JSON object ` +
|
||||||
`of "query-parameter-name" as the key and the "query-parameter-value" as the value. ` +
|
`of "query-parameter-name" as the key and the "query-parameter-value" as the value. ` +
|
||||||
`The "query-parameter-value" may be fo type "string" or an "object" of the form { value: "query-parameter-value", skipUrlEncoding: true }.`);
|
`The "query-parameter-value" may be of type "string" or an "object" of the form { value: "query-parameter-value", skipUrlEncoding: true }.`);
|
||||||
}
|
}
|
||||||
// append question mark if it is not present in the url
|
// append question mark if it is not present in the url
|
||||||
if (this.url && this.url.indexOf("?") === -1) {
|
if (this.url && this.url.indexOf("?") === -1) {
|
||||||
@ -18682,7 +18682,7 @@ util.inherits(FormData, CombinedStream);
|
|||||||
* and file uploads to other web applications.
|
* and file uploads to other web applications.
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {Object} options - Properties to be added/overriden for FormData and CombinedStream
|
* @param {Object} options - Properties to be added/overridden for FormData and CombinedStream
|
||||||
*/
|
*/
|
||||||
function FormData(options) {
|
function FormData(options) {
|
||||||
if (!(this instanceof FormData)) {
|
if (!(this instanceof FormData)) {
|
||||||
@ -19131,11 +19131,11 @@ FormData.prototype.submit = function(params, cb) {
|
|||||||
if (cb) {
|
if (cb) {
|
||||||
var onResponse;
|
var onResponse;
|
||||||
|
|
||||||
var callback = function (error, responce) {
|
var callback = function (error, response) {
|
||||||
request.removeListener('error', callback);
|
request.removeListener('error', callback);
|
||||||
request.removeListener('response', onResponse);
|
request.removeListener('response', onResponse);
|
||||||
|
|
||||||
return cb.call(this, error, responce);
|
return cb.call(this, error, response);
|
||||||
};
|
};
|
||||||
|
|
||||||
onResponse = callback.bind(this, null);
|
onResponse = callback.bind(this, null);
|
||||||
@ -35667,7 +35667,7 @@ const PathStylePorts = [
|
|||||||
* SDK will encode it to "http://account.blob.core.windows.net/con/b%253A" and send to server. A blob named "b%3A" will be created.
|
* SDK will encode it to "http://account.blob.core.windows.net/con/b%253A" and send to server. A blob named "b%3A" will be created.
|
||||||
*
|
*
|
||||||
* But this strategy will make it not possible to create a blob with "?" in it's name. Because when customer URL string is
|
* But this strategy will make it not possible to create a blob with "?" in it's name. Because when customer URL string is
|
||||||
* "http://account.blob.core.windows.net/con/blob?name", the "?name" will be treated as URL paramter instead of blob name.
|
* "http://account.blob.core.windows.net/con/blob?name", the "?name" will be treated as URL parameter instead of blob name.
|
||||||
* If customer URL string is "http://account.blob.core.windows.net/con/blob%3Fname", a blob named "blob%3Fname" will be created.
|
* If customer URL string is "http://account.blob.core.windows.net/con/blob%3Fname", a blob named "blob%3Fname" will be created.
|
||||||
* V2 SDK doesn't have this issue because it doesn't allow customer pass in a full URL, it accepts a separate blob name and encodeURIComponent for it.
|
* V2 SDK doesn't have this issue because it doesn't allow customer pass in a full URL, it accepts a separate blob name and encodeURIComponent for it.
|
||||||
* We cannot accept a SDK cannot create a blob name with "?". So we implement strategy two:
|
* We cannot accept a SDK cannot create a blob name with "?". So we implement strategy two:
|
||||||
@ -36134,7 +36134,7 @@ function toBlobTags(tags) {
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Covert BlobTags to Tags type.
|
* Convert BlobTags to Tags type.
|
||||||
*
|
*
|
||||||
* @param tags -
|
* @param tags -
|
||||||
*/
|
*/
|
||||||
@ -37415,7 +37415,7 @@ class BlobSASPermissions {
|
|||||||
*/
|
*/
|
||||||
this.deleteVersion = false;
|
this.deleteVersion = false;
|
||||||
/**
|
/**
|
||||||
* Specfies Tag access granted.
|
* Specifies Tag access granted.
|
||||||
*/
|
*/
|
||||||
this.tag = false;
|
this.tag = false;
|
||||||
/**
|
/**
|
||||||
@ -37612,7 +37612,7 @@ class ContainerSASPermissions {
|
|||||||
*/
|
*/
|
||||||
this.list = false;
|
this.list = false;
|
||||||
/**
|
/**
|
||||||
* Specfies Tag access granted.
|
* Specifies Tag access granted.
|
||||||
*/
|
*/
|
||||||
this.tag = false;
|
this.tag = false;
|
||||||
/**
|
/**
|
||||||
@ -41797,7 +41797,7 @@ class BlobClient extends StorageClient {
|
|||||||
* Sets tags on the underlying blob.
|
* Sets tags on the underlying blob.
|
||||||
* A blob can have up to 10 tags. Tag keys must be between 1 and 128 characters. Tag values must be between 0 and 256 characters.
|
* A blob can have up to 10 tags. Tag keys must be between 1 and 128 characters. Tag values must be between 0 and 256 characters.
|
||||||
* Valid tag key and value characters include lower and upper case letters, digits (0-9),
|
* Valid tag key and value characters include lower and upper case letters, digits (0-9),
|
||||||
* space (' '), plus ('+'), minus ('-'), period ('.'), foward slash ('/'), colon (':'), equals ('='), and underscore ('_').
|
* space (' '), plus ('+'), minus ('-'), period ('.'), forward slash ('/'), colon (':'), equals ('='), and underscore ('_').
|
||||||
*
|
*
|
||||||
* @param tags -
|
* @param tags -
|
||||||
* @param options -
|
* @param options -
|
||||||
@ -44159,7 +44159,7 @@ class BatchResponseParser {
|
|||||||
// The response will contain the Content-ID header for each corresponding subrequest response to use for tracking.
|
// The response will contain the Content-ID header for each corresponding subrequest response to use for tracking.
|
||||||
// The Content-IDs are set to a valid index in the subrequests we sent. In the status code 202 path, we could expect it
|
// The Content-IDs are set to a valid index in the subrequests we sent. In the status code 202 path, we could expect it
|
||||||
// to be 1-1 mapping from the [0, subRequests.size) to the Content-IDs returned. If not, we simply don't return that
|
// to be 1-1 mapping from the [0, subRequests.size) to the Content-IDs returned. If not, we simply don't return that
|
||||||
// unexpected subResponse in the parsed reponse and we can always look it up in the raw response for debugging purpose.
|
// unexpected subResponse in the parsed response and we can always look it up in the raw response for debugging purpose.
|
||||||
if (contentId !== NOT_FOUND &&
|
if (contentId !== NOT_FOUND &&
|
||||||
Number.isInteger(contentId) &&
|
Number.isInteger(contentId) &&
|
||||||
contentId >= 0 &&
|
contentId >= 0 &&
|
||||||
@ -45963,7 +45963,7 @@ class AccountSASPermissions {
|
|||||||
*/
|
*/
|
||||||
this.process = false;
|
this.process = false;
|
||||||
/**
|
/**
|
||||||
* Specfies Tag access granted.
|
* Specifies Tag access granted.
|
||||||
*/
|
*/
|
||||||
this.tag = false;
|
this.tag = false;
|
||||||
/**
|
/**
|
||||||
@ -56284,7 +56284,7 @@ function fetch(url, opts) {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
// error here can only be invalid URL in Location: header
|
// error here can only be invalid URL in Location: header
|
||||||
// do not throw when options.redirect == manual
|
// do not throw when options.redirect == manual
|
||||||
// let the user extract the errorneous redirect URL
|
// let the user extract the erroneous redirect URL
|
||||||
if (request.redirect !== 'manual') {
|
if (request.redirect !== 'manual') {
|
||||||
reject(new FetchError(`uri requested responds with an invalid redirect URL: ${location}`, 'invalid-redirect'));
|
reject(new FetchError(`uri requested responds with an invalid redirect URL: ${location}`, 'invalid-redirect'));
|
||||||
finalize();
|
finalize();
|
||||||
@ -59324,7 +59324,7 @@ module.exports.implForWrapper = function (wrapper) {
|
|||||||
var parent = parser.tags[parser.tags.length - 1] || parser
|
var parent = parser.tags[parser.tags.length - 1] || parser
|
||||||
var tag = parser.tag = { name: parser.tagName, attributes: {} }
|
var tag = parser.tag = { name: parser.tagName, attributes: {} }
|
||||||
|
|
||||||
// will be overridden if tag contails an xmlns="foo" or xmlns:foo="bar"
|
// will be overridden if tag contains an xmlns="foo" or xmlns:foo="bar"
|
||||||
if (parser.opt.xmlns) {
|
if (parser.opt.xmlns) {
|
||||||
tag.ns = parent.ns
|
tag.ns = parent.ns
|
||||||
}
|
}
|
||||||
@ -61976,7 +61976,7 @@ createToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)
|
|||||||
createToken('GTLT', '((?:<|>)?=?)')
|
createToken('GTLT', '((?:<|>)?=?)')
|
||||||
|
|
||||||
// Something like "2.*" or "1.2.x".
|
// Something like "2.*" or "1.2.x".
|
||||||
// Note that "x.x" is a valid xRange identifer, meaning "any version"
|
// Note that "x.x" is a valid xRange identifier, meaning "any version"
|
||||||
// Only the first item is strictly required.
|
// Only the first item is strictly required.
|
||||||
createToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`)
|
createToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`)
|
||||||
createToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`)
|
createToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`)
|
||||||
|
Loading…
Reference in New Issue
Block a user