This is an automated email from the ASF dual-hosted git repository.
lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git
The following commit(s) were added to refs/heads/main by this push:
new 886cfa538 fix(ci/scripts): correct csharp pack powershell script to
set arguments correctly (#4304)
886cfa538 is described below
commit 886cfa53879ede4c3ad72ac97edfdf7ad6e7f1d8
Author: Bruce Irschick <[email protected]>
AuthorDate: Wed May 6 21:34:08 2026 -0700
fix(ci/scripts): correct csharp pack powershell script to set arguments
correctly (#4304)
Corrects the command arguments to `dotnet pack` for the `--no-build`
flag.
- change the argument's value from $true to '' (empty string) as it is a
flag with no argument value.
- add a command to return the working folder back to the original it was
called from.
Co-authored-by: Bruce Irschick (Bit Quill Technologies Inc)
<[email protected]>
---
ci/scripts/csharp_pack.ps1 | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/ci/scripts/csharp_pack.ps1 b/ci/scripts/csharp_pack.ps1
index 1b34c9bf5..6812c410e 100644
--- a/ci/scripts/csharp_pack.ps1
+++ b/ci/scripts/csharp_pack.ps1
@@ -38,7 +38,11 @@ if ($versionSuffix) {
}
if ($noBuild) {
Write-Host " * Pack without building"
- $packArgs["-no-build"] = $true
+ # this argument is a flag and has no value, so we set it to an empty
string,
+ # not $true or $false, which would be converted to "True" or "False"
+ $packArgs["-no-build"] = ""
}
dotnet pack @packArgs
+
+Set-Location -