chore(e2e): Update go mod download to run on the correct user (#6227)
* chore(e2e): Ensure go modules are downloaded for test user * chore(e2e): Add additional debug lines in script * chore(e2e): Exclude boundary-ui clone when zipping boundary src
This commit is contained in:
1 parent
4a7342b074
commit
89c577ddd7
2 files changed
+9
-2
No files matched your search
@@ -2,10 +2,12 @@
|
||||
# SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
# Unzip Boundary CLI to the same directory
|
||||
Write-Host "Unzipping Boundary CLI..."
|
||||
$destination = Split-Path -Path ${boundary_cli_zip_path}
|
||||
Expand-Archive -Path ${boundary_cli_zip_path} -DestinationPath $destination -Force
|
||||
|
||||
# Unzip boundary src to new directory
|
||||
Write-Host "Unzipping Boundary source code..."
|
||||
$base = [System.IO.Path]::GetFileNameWithoutExtension("${boundary_src_zip_path}")
|
||||
$src_destination = Join-Path (Split-Path ${boundary_src_zip_path}) $base
|
||||
Expand-Archive -Path ${boundary_src_zip_path} -DestinationPath $src_destination -Force
|
||||
@@ -58,11 +60,13 @@ choco install cmake --version 3.31.8 -y
|
||||
refreshenv
|
||||
|
||||
# Set the github token if provided
|
||||
Write-Host "Checking if GitHub token is provided..."
|
||||
if ("${github_token}" -ne "") {
|
||||
# configure git to be able to download from private repos
|
||||
git config --system url."https://oauth2:${github_token}@github.com".insteadOf "https://github.com"
|
||||
|
||||
# download opencv artifact if available
|
||||
Write-Host "Downloading OpenCV artifact.."
|
||||
[Environment]::SetEnvironmentVariable("GITHUB_TOKEN", "${github_token}", [EnvironmentVariableTarget]::Machine)
|
||||
choco install gh -y
|
||||
refreshenv
|
||||
@@ -100,6 +104,7 @@ if ("${github_token}" -ne "") {
|
||||
)
|
||||
|
||||
# go mod download
|
||||
Write-Host "Downloading Go modules at $src_destination..."
|
||||
cd $src_destination
|
||||
go mod download
|
||||
}
|
||||
Reference in new issue
Block a user