Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: resolve Windows path issue in pnpm build client #2240

Merged

Conversation

KacperKoza343
Copy link
Contributor

@KacperKoza343 KacperKoza343 commented Jan 13, 2025

Fixes #2223

Relates to

#2223

Risks

Background

What does this PR do?

Windows users are experiencing an issue with the extract-version script in package.json. The current configuration works differently on Windows vs Unix-based systems:

  • Windows requires: "extract-version": "version.sh"
  • Unix requires: "extract-version": "./version.sh"

This is causing the script to fail on Windows systems due to path resolution differences between operating systems.
Solution
The most cross-platform compatible solution is to use the sh command explicitly in the script

What kind of change is this?

Documentation changes needed?

Testing

Where should a reviewer start?

Detailed testing steps

@KacperKoza343 KacperKoza343 marked this pull request as ready for review January 13, 2025 13:19
@Qbaismo
Copy link

Qbaismo commented Jan 13, 2025

thx, this is it

Windows requires: "extract-version": "version.sh"
Unix requires: "extract-version": "./version.sh"

@odilitime odilitime merged commit c7e9a0b into elizaOS:develop Jan 14, 2025
10 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug Report - pnpm buid : Failed client#build
4 participants