Skip to content

Fix/win path - #341

Merged
salihudickson merged 2 commits into
xd/winfrom
fix/win-path
Aug 5, 2024
Merged

salihudickson merged 2 commits into
xd/winfrom
fix/win-path

Conversation

@salihudickson

@salihudickson salihudickson commented Aug 5, 2024 •

Copy link
Copy Markdown
Contributor

Description

This fixes this issue that breaks the build on windows machines.

Checklist

  • My code follows the contributing guidelines of this project.
  • I am aware that all my commits will be squashed into a single commit, using the PR title as the commit message.
  • I have performed a self-review of my own code.
  • I have commented my code in hard-to-understand areas.
  • I have updated the user-facing documentation to describe any new or changed behavior.
  • My changes generate no new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have not reduced the existing code coverage.

Comments

Summary by Sourcery

Fix path normalization in the build script to resolve build issues on Windows machines by ensuring all paths are correctly formatted.

Bug Fixes:

  • Fix path normalization in build script to ensure compatibility with Windows file system.

@vercel

vercel Bot commented Aug 5, 2024 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
elixir-cloud-components ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 5, 2024 9:51pm

@changeset-bot

changeset-bot Bot commented Aug 5, 2024

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 15402cd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@sourcery-ai

sourcery-ai Bot commented Aug 5, 2024 •

Copy link
Copy Markdown
Contributor

Reviewer's Guide by Sourcery

This pull request addresses an issue that breaks the build on Windows machines by updating path handling in the build and utility scripts. The changes involve using normalizePath for consistent path formatting and modifying path.join usage to ensure cross-platform compatibility.

File-Level Changes

Files Changes
scripts/build.js
scripts/utils.js
Updated path handling to improve compatibility with Windows by using normalizePath and adjusting path.join usage.

Tips
  • Trigger a new Sourcery review by commenting @sourcery-ai review on the pull request.
  • Continue your discussion with Sourcery by replying directly to review comments.
  • You can change your review settings at any time by accessing your dashboard:
    • Enable or disable the Sourcery-generated pull request summary or reviewer's guide;
    • Change the review language;
  • You can always contact us if you have any questions or feedback.

@salihudickson
salihudickson merged commit cc7d21d into xd/win Aug 5, 2024
@salihudickson
salihudickson deleted the fix/win-path branch August 5, 2024 21:52

@sourcery-ai sourcery-ai Bot 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.

Hey @salihudickson - I've reviewed your changes - here's some feedback:

Overall Comments:

  • Could you provide more context about the specific Windows build issue this PR is addressing? This would help reviewers understand the necessity of these changes.
  • Consider adding comments to explain the rationale behind these changes, particularly for the reactDir modification in scripts/utils.js. This will be helpful for future maintenance.
  • Have you considered implementing a more comprehensive path handling strategy across the project? This might simplify path management and improve cross-platform compatibility in the long run.
Here's what I looked at during the review
  • 🟢 General issues: all looks good
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

salihudickson added a commit to sivangbagri/cloud-components that referenced this pull request Oct 12, 2024

This branch was previously deployed

1 inactive deployment
Preview — 15402cd5 Deployed Aug 5, 2024 by vercel[bot]
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.

1 participant