Skip to content

Fix Windows build: use bash shell for version update step#55

Merged
baryhuang merged 1 commit into
mainfrom
fix-windows-version
Jan 1, 2026
Merged

Fix Windows build: use bash shell for version update step#55
baryhuang merged 1 commit into
mainfrom
fix-windows-version

Conversation

@baryhuang

Copy link
Copy Markdown
Owner

Problem

Windows build failing with:

The term 'VERSION=v0.1.45' is not recognized as a name of a cmdlet, function, script file, or executable program.

Root Cause

Windows runners use PowerShell by default, which doesn't support bash variable syntax like VERSION="${VERSION#v}".

Solution

Add shell: bash to the version update step to ensure it runs in bash on all platforms.

- name: Update version from tag
  shell: bash  # <-- Added this
  run: |
    VERSION="${{ github.ref_name }}"
    ...

Co-authored-by: openhands openhands@all-hands.dev

@baryhuang can click here to continue refining the PR

Windows runners use PowerShell by default, which doesn't support
bash variable syntax. Adding 'shell: bash' fixes this.

Co-authored-by: openhands <openhands@all-hands.dev>
@baryhuang
baryhuang merged commit 07acf8e into main Jan 1, 2026
3 checks passed
@baryhuang
baryhuang deleted the fix-windows-version branch January 1, 2026 06:53
@baryhuang baryhuang mentioned this pull request Jan 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants