-
Notifications
You must be signed in to change notification settings - Fork 173
fix(go/adbc/pkg): add PowerShell option to run when executing in a Windows-based ADO pipeline #3124
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
Conversation
|
@zeroshade - we verified this against the ADO pipeline. Can you verify it doesn't mess up anything with the versioning that you did for the Go drivers? |
| RM=del | ||
| GIT_VERSION=$(shell powershell -Command "git tag --sort=-v:refname --points-at $(git rev-list --tags --max-count=1) | Select-Object -First 1") | ||
| else | ||
| SUFFIX=dylib |
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.
Doesn't this omit macOS? Maybe there should be a separate ifeq windows [powershell] else [git]?
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.
good catch. fixed.
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.
@davidhcoe as long as that powershell command returns the same "go/adbc/v#.#.#" string that we get from on Linux/unix then it shouldn't cause any issues with the version embedding.
I'm not familiar with the ?= syntax in makefiles, but I assume it's essentially that it assigns iff it's currently empty/unset, right? If so, all should be good.
|
I need to run 1 more pipeline test to verify again after my recent push. |
|
ok, all set. The PowerShell output looks like: |
|
Looks good! |
When running from the PowerShell script as part of an ADO pipeline, the line
was generating the error:
This change swaps some of the commands but also has a separate PowerShell command for the Windows OS instead of the shell command.