This is an automated email from the ASF dual-hosted git repository. nightowl888 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/lucenenet.git
commit 9692a5b55a5e688dab412a279d36eacd5d6bb5a1 Author: Shad Storhaug <[email protected]> AuthorDate: Sun Feb 13 21:39:12 2022 +0700 BUG: .build/runbuild.ps1: Add SYSTEM_DEFAULTWORKINGDIRECTORY environment variable if it doesn't exist to let the lucene-cli installation tests know where to scan for the NuGet package so it doesn't need to rebuild it. --- .build/runbuild.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.build/runbuild.ps1 b/.build/runbuild.ps1 index f0c9f61..a164f57 100644 --- a/.build/runbuild.ps1 +++ b/.build/runbuild.ps1 @@ -167,6 +167,12 @@ task Pack -depends Compile -description "This task creates the NuGet packages" { & dotnet pack $solutionFile --configuration $configuration --output $nugetPackageDirectory --no-build } + # Set the SYSTEM_DEFAULTWORKINGDIRECTORY if we are not on Azure DevOps. This will optimize the lucene-cli + # installation test so it doesn't rebuild the NuGet package during a local build. + if (-Not (Test-Path 'env:SYSTEM_DEFAULTWORKINGDIRECTORY')) { + $env:SYSTEM_DEFAULTWORKINGDIRECTORY = "$baseDirectory" + } + $success = $true } finally { #if ($success -ne $true) {
