Skip to content

Commit 4380c12

Browse files
Remove the shelljs dependency (#1079)
* Replace all methods of shelljs module * Fix cd, ls methods and unit tests for these methods * Change crlf to lf * Add removing symbolic link to the rmRF method * Refactoring cd unit tests and logs * Refactoring pushd, popd unit tests and outputs * Refactoring ls method and unit tests * Remove init from overloads * Check realpath when change directory to a directory symbolic link * Fix paths in popd unit tests * Add OptionsPermutations, fix overloads, remove duplicate retryer func, sort test/tsconfig.json files --------- Co-authored-by: Rishabh Malik <rishabhmalik@microsoft.com>
1 parent c934514 commit 4380c12

File tree

14 files changed

+1840
-736
lines changed

14 files changed

+1840
-736
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,39 @@
11
{
2-
"loc.messages.LIB_UnhandledEx": "Unhandled: %s",
2+
"loc.messages.LIB_CopyFileFailed": "Error while copying the file. Attempts left: %s",
3+
"loc.messages.LIB_DirectoryStackEmpty": "Directory stack is empty",
4+
"loc.messages.LIB_EndpointAuthNotExist": "Endpoint auth data not present: %s",
5+
"loc.messages.LIB_EndpointDataNotExist": "Endpoint data parameter %s not present: %s",
6+
"loc.messages.LIB_EndpointNotExist": "Endpoint not present: %s",
37
"loc.messages.LIB_FailOnCode": "Failure return code: %d",
8+
"loc.messages.LIB_InputRequired": "Input required: %s",
9+
"loc.messages.LIB_InvalidEndpointAuth": "Invalid endpoint auth: %s",
10+
"loc.messages.LIB_InvalidPattern": "Invalid pattern: '%s'",
11+
"loc.messages.LIB_InvalidSecureFilesInput": "Invalid secure file input: %s",
12+
"loc.messages.LIB_LocStringNotFound": "Can\\'t find loc string for key: %s",
13+
"loc.messages.LIB_MergeTestResultNotSupported": "Merging test results from multiple files to one test run is not supported on this version of build agent for OSX/Linux, each test result file will be published as a separate test run in VSO/TFS.",
414
"loc.messages.LIB_MkdirFailed": "Unable to create directory '%s'. %s",
515
"loc.messages.LIB_MkdirFailedFileExists": "Unable to create directory '%s'. Conflicting file exists: '%s'",
616
"loc.messages.LIB_MkdirFailedInvalidDriveRoot": "Unable to create directory '%s'. Root directory does not exist: '%s'",
717
"loc.messages.LIB_MkdirFailedInvalidShare": "Unable to create directory '%s'. Unable to verify the directory exists: '%s'. If directory is a file share, please verify the share name is correct, the share is online, and the current process has permission to access the share.",
818
"loc.messages.LIB_MultilineSecret": "Secrets cannot contain multiple lines",
19+
"loc.messages.LIB_NotFoundPreviousDirectory": "Could not find previous directory",
20+
"loc.messages.LIB_OperationFailed": "Failed %s: %s",
21+
"loc.messages.LIB_ParameterIsRequired": "%s not supplied",
22+
"loc.messages.LIB_PathHasNullByte": "Path cannot contain null bytes",
23+
"loc.messages.LIB_PathIsNotADirectory": "Path is not a directory: %s",
24+
"loc.messages.LIB_PathNotFound": "Not found %s: %s",
25+
"loc.messages.LIB_PlatformNotSupported": "Platform not supported: %s",
926
"loc.messages.LIB_ProcessError": "There was an error when attempting to execute the process '%s'. This may indicate the process failed to start. Error: %s",
1027
"loc.messages.LIB_ProcessExitCode": "The process '%s' failed with exit code %s",
1128
"loc.messages.LIB_ProcessStderr": "The process '%s' failed because one or more lines were written to the STDERR stream",
12-
"loc.messages.LIB_ReturnCode": "Return code: %d",
13-
"loc.messages.LIB_ResourceFileNotExist": "Resource file doesn\\'t exist: %s",
1429
"loc.messages.LIB_ResourceFileAlreadySet": "Resource file has already set to: %s",
30+
"loc.messages.LIB_ResourceFileNotExist": "Resource file doesn\\'t exist: %s",
1531
"loc.messages.LIB_ResourceFileNotSet": "Resource file haven\\'t set, can\\'t find loc string for key: %s",
32+
"loc.messages.LIB_ReturnCode": "Return code: %d",
1633
"loc.messages.LIB_StdioNotClosed": "The STDIO streams did not close within %s seconds of the exit event from process '%s'. This may indicate a child process inherited the STDIO streams and has not yet exited.",
17-
"loc.messages.LIB_WhichNotFound_Linux": "Unable to locate executable file: '%s'. 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.",
18-
"loc.messages.LIB_WhichNotFound_Win": "Unable to locate executable file: '%s'. 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.",
19-
"loc.messages.LIB_LocStringNotFound": "Can\\'t find loc string for key: %s",
20-
"loc.messages.LIB_ParameterIsRequired": "%s not supplied",
21-
"loc.messages.LIB_InputRequired": "Input required: %s",
22-
"loc.messages.LIB_InvalidPattern": "Invalid pattern: '%s'",
23-
"loc.messages.LIB_EndpointNotExist": "Endpoint not present: %s",
24-
"loc.messages.LIB_EndpointDataNotExist": "Endpoint data parameter %s not present: %s",
25-
"loc.messages.LIB_EndpointAuthNotExist": "Endpoint auth data not present: %s",
26-
"loc.messages.LIB_InvalidEndpointAuth": "Invalid endpoint auth: %s",
27-
"loc.messages.LIB_InvalidSecureFilesInput": "Invalid secure file input: %s",
28-
"loc.messages.LIB_PathNotFound": "Not found %s: %s",
29-
"loc.messages.LIB_PathHasNullByte": "Path cannot contain null bytes",
30-
"loc.messages.LIB_OperationFailed": "Failed %s: %s",
34+
"loc.messages.LIB_UndefinedNodeVersion": "Node version is undefined.",
35+
"loc.messages.LIB_UnhandledEx": "Unhandled: %s",
3136
"loc.messages.LIB_UseFirstGlobMatch": "Multiple workspace matches. using first.",
32-
"loc.messages.LIB_MergeTestResultNotSupported": "Merging test results from multiple files to one test run is not supported on this version of build agent for OSX/Linux, each test result file will be published as a separate test run in VSO/TFS.",
33-
"loc.messages.LIB_PlatformNotSupported": "Platform not supported: %s",
34-
"loc.messages.LIB_CopyFileFailed": "Error while copying the file. Attempts left: %s",
35-
"loc.messages.LIB_UndefinedNodeVersion": "Node version is undefined."
37+
"loc.messages.LIB_WhichNotFound_Linux": "Unable to locate executable file: '%s'. 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.",
38+
"loc.messages.LIB_WhichNotFound_Win": "Unable to locate executable file: '%s'. 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."
3639
}

node/lib.json

+26-23
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,41 @@
11
{
22
"messages": {
3-
"LIB_UnhandledEx": "Unhandled: %s",
3+
"LIB_CopyFileFailed": "Error while copying the file. Attempts left: %s",
4+
"LIB_DirectoryStackEmpty": "Directory stack is empty",
5+
"LIB_EndpointAuthNotExist": "Endpoint auth data not present: %s",
6+
"LIB_EndpointDataNotExist": "Endpoint data parameter %s not present: %s",
7+
"LIB_EndpointNotExist": "Endpoint not present: %s",
48
"LIB_FailOnCode": "Failure return code: %d",
9+
"LIB_InputRequired": "Input required: %s",
10+
"LIB_InvalidEndpointAuth": "Invalid endpoint auth: %s",
11+
"LIB_InvalidPattern": "Invalid pattern: '%s'",
12+
"LIB_InvalidSecureFilesInput": "Invalid secure file input: %s",
13+
"LIB_LocStringNotFound": "Can\\'t find loc string for key: %s",
14+
"LIB_MergeTestResultNotSupported": "Merging test results from multiple files to one test run is not supported on this version of build agent for OSX/Linux, each test result file will be published as a separate test run in VSO/TFS.",
515
"LIB_MkdirFailed": "Unable to create directory '%s'. %s",
616
"LIB_MkdirFailedFileExists": "Unable to create directory '%s'. Conflicting file exists: '%s'",
717
"LIB_MkdirFailedInvalidDriveRoot": "Unable to create directory '%s'. Root directory does not exist: '%s'",
818
"LIB_MkdirFailedInvalidShare": "Unable to create directory '%s'. Unable to verify the directory exists: '%s'. If directory is a file share, please verify the share name is correct, the share is online, and the current process has permission to access the share.",
919
"LIB_MultilineSecret": "Secrets cannot contain multiple lines",
20+
"LIB_NotFoundPreviousDirectory": "Could not find previous directory",
21+
"LIB_OperationFailed": "Failed %s: %s",
22+
"LIB_ParameterIsRequired": "%s not supplied",
23+
"LIB_PathHasNullByte": "Path cannot contain null bytes",
24+
"LIB_PathIsNotADirectory": "Path is not a directory: %s",
25+
"LIB_PathNotFound": "Not found %s: %s",
26+
"LIB_PlatformNotSupported": "Platform not supported: %s",
1027
"LIB_ProcessError": "There was an error when attempting to execute the process '%s'. This may indicate the process failed to start. Error: %s",
1128
"LIB_ProcessExitCode": "The process '%s' failed with exit code %s",
1229
"LIB_ProcessStderr": "The process '%s' failed because one or more lines were written to the STDERR stream",
13-
"LIB_ReturnCode": "Return code: %d",
14-
"LIB_ResourceFileNotExist": "Resource file doesn\\'t exist: %s",
1530
"LIB_ResourceFileAlreadySet": "Resource file has already set to: %s",
31+
"LIB_ResourceFileNotExist": "Resource file doesn\\'t exist: %s",
1632
"LIB_ResourceFileNotSet": "Resource file haven\\'t set, can\\'t find loc string for key: %s",
33+
"LIB_ReturnCode": "Return code: %d",
1734
"LIB_StdioNotClosed": "The STDIO streams did not close within %s seconds of the exit event from process '%s'. This may indicate a child process inherited the STDIO streams and has not yet exited.",
18-
"LIB_WhichNotFound_Linux": "Unable to locate executable file: '%s'. 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.",
19-
"LIB_WhichNotFound_Win": "Unable to locate executable file: '%s'. 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.",
20-
"LIB_LocStringNotFound": "Can\\'t find loc string for key: %s",
21-
"LIB_ParameterIsRequired": "%s not supplied",
22-
"LIB_InputRequired": "Input required: %s",
23-
"LIB_InvalidPattern": "Invalid pattern: '%s'",
24-
"LIB_EndpointNotExist": "Endpoint not present: %s",
25-
"LIB_EndpointDataNotExist": "Endpoint data parameter %s not present: %s",
26-
"LIB_EndpointAuthNotExist": "Endpoint auth data not present: %s",
27-
"LIB_InvalidEndpointAuth": "Invalid endpoint auth: %s",
28-
"LIB_InvalidSecureFilesInput": "Invalid secure file input: %s",
29-
"LIB_PathNotFound": "Not found %s: %s",
30-
"LIB_PathHasNullByte": "Path cannot contain null bytes",
31-
"LIB_OperationFailed": "Failed %s: %s",
35+
"LIB_UndefinedNodeVersion": "Node version is undefined.",
36+
"LIB_UnhandledEx": "Unhandled: %s",
3237
"LIB_UseFirstGlobMatch": "Multiple workspace matches. using first.",
33-
"LIB_MergeTestResultNotSupported": "Merging test results from multiple files to one test run is not supported on this version of build agent for OSX/Linux, each test result file will be published as a separate test run in VSO/TFS.",
34-
"LIB_PlatformNotSupported": "Platform not supported: %s",
35-
"LIB_CopyFileFailed": "Error while copying the file. Attempts left: %s",
36-
"LIB_UndefinedNodeVersion": "Node version is undefined."
37-
}
38-
}
38+
"LIB_WhichNotFound_Linux": "Unable to locate executable file: '%s'. 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.",
39+
"LIB_WhichNotFound_Win": "Unable to locate executable file: '%s'. 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."
40+
}
41+
}

node/package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "azure-pipelines-task-lib",
3-
"version": "4.17.3",
3+
"version": "5.0.0",
44
"description": "Azure Pipelines Task SDK",
55
"main": "./task.js",
66
"typings": "./task.d.ts",

0 commit comments

Comments
 (0)