Skip to content

fix: specify bash as shell to ensure INSO_VERSION can be read on Windows - #8704

Merged
ZxBing0066 merged 2 commits into
developfrom
fix/inso-version-issue-on-windows
May 13, 2025
Merged

fix: specify bash as shell to ensure INSO_VERSION can be read on Windows#8704
ZxBing0066 merged 2 commits into
developfrom
fix/inso-version-issue-on-windows

Conversation

@ZxBing0066

Copy link
Copy Markdown
Member

Background

When users use the inso CLI on Windows, it returns dev as its version.

Root Cause

From the log, the version cannot be read on Windows when building.

iShot_2025-05-12_17 17 51

Windows uses PowerShell as the default shell, it needs a different expression to set the env, so specify it to use bash to avoid the inconsistency.

Changes

Specify bash as the shell when Setup Inso CLI version env var.

Closes #8397

@ZxBing0066
ZxBing0066 requested a review from Copilot May 12, 2025 09:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes an issue on Windows where the inso CLI was returning an incorrect version by explicitly specifying bash as the shell when setting the INSO_VERSION environment variable.

  • Enforces the use of bash in the "Setup Inso CLI version env var" step to ensure consistent behavior on Windows.
Comments suppressed due to low confidence (1)

.github/workflows/release-build.yml:71

  • [nitpick] Ensure that the bash shell is available on all runners, particularly if this workflow may run on Windows self-hosted machines. You might consider adding documentation or a check to verify bash availability.
shell: bash

@ZxBing0066

Copy link
Copy Markdown
Member Author

@ZxBing0066
ZxBing0066 requested a review from a team May 12, 2025 10:04
@ZxBing0066 ZxBing0066 self-assigned this May 12, 2025
@ZxBing0066
ZxBing0066 enabled auto-merge (squash) May 13, 2025 02:03
@ZxBing0066
ZxBing0066 merged commit 69c08ec into develop May 13, 2025
@ZxBing0066
ZxBing0066 deleted the fix/inso-version-issue-on-windows branch May 13, 2025 03:13
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.

Inso CLI 'inso --version' command reports 'dev' on newest version

3 participants