-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removed unsupported lib, added async methods #932
Removed unsupported lib, added async methods #932
Conversation
powershell/make-util.js
Outdated
var downloadArchive = function (url, fileName) { | ||
var result; | ||
downloadArchiveAsync(url, fileName).then(t => result = t); | ||
deasync.loopWhile(function () { return result == undefined; }); | ||
return result; | ||
} | ||
|
||
/** | ||
* @deprecated This method uses library which is not prefered to use on production | ||
*/ | ||
|
||
exports.downloadArchive = downloadArchive; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we need that for now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since this is exported I am not sure is there any user of this method, thus I prefer to keep for a while.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK, we don't have make files in the final build, so it's only for internal usage
powershell/make-util.js
Outdated
var downloadFile = function (url, fileName) { | ||
var result; | ||
downloadFileAsync(url, fileName).then(t => result = t); | ||
deasync.loopWhile(function () { return result == undefined; }); | ||
return result; | ||
} | ||
exports.downloadFile = downloadFile; | ||
|
||
var downloadArchive = function (url) { | ||
if (!url) { | ||
throw new Error('Parameter "url" must be set.'); | ||
} | ||
/** | ||
* @deprecated This method uses library which is not prefered to use on production | ||
*/ | ||
exports.downloadFile = downloadFile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we need this function for now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general LGTM, but could you please bump task-lib version, confirm that there is no breaking changes and fill changelogs file. |
Azure Pipelines successfully started running 2 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally with AntV1 task tests. LGTM
…s://github.com/microsoft/azure-pipelines-task-lib into users/ismayilov-ismayil/remove_unsupported_lib
* Bump azure-pipelines-task-lib to fix open handles - microsoft/azure-pipelines-task-lib#932 - ForbesLindesay/sync-request#129 * Fix "Could not locate the bindings file" * Run mock tasks asynchronously
* Bump azure-pipelines-task-lib to fix open handles - microsoft/azure-pipelines-task-lib#932 - ForbesLindesay/sync-request#129 * Fix "Could not locate the bindings file" * Run mock tasks asynchronously * [dep] Remove superfluous libraries * Try node 10 entrypoint * Revert "Try node 10 entrypoint" This reverts commit b962ed3.
* Bump azure-pipelines-task-lib to fix open handles - microsoft/azure-pipelines-task-lib#932 - ForbesLindesay/sync-request#129 * Fix "Could not locate the bindings file" * Run mock tasks asynchronously * [test] Download Node.js only once
* Removed unsupported lib, added async methods * Update 3rd party library change to async * Format style in ThirdPartyNotice
* Removed unsupported lib, added async methods (#932) * Removed unsupported lib, added async methods * Update 3rd party library change to async * Format style in ThirdPartyNotice * [Deasync remove] - Remove deasync from task-lib - Remove deasync from node build process * [Deasync remove] - Remove deasync from task-lib - Remove deasync from node build process * [Deasync remove] - Remove deasync from task-lib - Remove deasync from node build process - Fixed unit tests - Updated json * Added publish script for PowerShell SDK (#975) * simple yampl to create pipeline * Add additional steps into pipeline to publish nuget feed * Upgrade net framework version * Revert csproj changes * Specify msbuild version for old netframework support * Add arch argument to msbuild installation * Bump package version * Use nuspec version directly * Fix downloadFileAsync * rm committed minimatch dll * Move publish steps to job + temp disable it * Move version to package back. Fix encoding * Add publish script * Update tags * update company metadata * Update to publish to powershell gallery --------- Co-authored-by: Konstantin Tyukalov <v-ktyukalov@microsoft.com> Co-authored-by: Konstantin Tyukalov <52399739+KonstantinTyukalov@users.noreply.github.com> * [Deasync remove] - Remove deasync from task-lib - Code review changes --------- Co-authored-by: İsmayıl İsmayılov <110806089+ismayilov-ismayil@users.noreply.github.com> Co-authored-by: Konstantin Tyukalov <v-ktyukalov@microsoft.com> Co-authored-by: Konstantin Tyukalov <52399739+KonstantinTyukalov@users.noreply.github.com>
* Removed unsupported lib, added async methods (#932) * Removed unsupported lib, added async methods * Update 3rd party library change to async * Format style in ThirdPartyNotice * [Deasync remove] - Remove deasync from task-lib - Remove deasync from node build process * [Deasync remove] - Remove deasync from task-lib - Remove deasync from node build process * [Deasync remove] - Remove deasync from task-lib - Remove deasync from node build process - Fixed unit tests - Updated json * Added publish script for PowerShell SDK (#975) * simple yampl to create pipeline * Add additional steps into pipeline to publish nuget feed * Upgrade net framework version * Revert csproj changes * Specify msbuild version for old netframework support * Add arch argument to msbuild installation * Bump package version * Use nuspec version directly * Fix downloadFileAsync * rm committed minimatch dll * Move publish steps to job + temp disable it * Move version to package back. Fix encoding * Add publish script * Update tags * update company metadata * Update to publish to powershell gallery --------- Co-authored-by: Konstantin Tyukalov <v-ktyukalov@microsoft.com> Co-authored-by: Konstantin Tyukalov <52399739+KonstantinTyukalov@users.noreply.github.com> * [Deasync remove] - Remove deasync from task-lib - Code review changes --------- Co-authored-by: İsmayıl İsmayılov <110806089+ismayilov-ismayil@users.noreply.github.com> Co-authored-by: Konstantin Tyukalov <v-ktyukalov@microsoft.com> Co-authored-by: Konstantin Tyukalov <52399739+KonstantinTyukalov@users.noreply.github.com>
* Removed unsupported lib, added async methods * Update 3rd party library change to async * Format style in ThirdPartyNotice
Issue: sync-request library not supported any more and has high vulnerability issue
Solution: sync-request package removed. downloadFile and related methods changed to async. To make it backward-compatibly async method wrapped into sync by deasync library.