Skip to content
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

fix(shorebird_cli): use path.join to construct paths #362

Merged
merged 1 commit into from
Apr 25, 2023

Conversation

bryanoltman
Copy link
Contributor

@bryanoltman bryanoltman commented Apr 25, 2023

Description

Updates path construction logic to use path.join instead of hardcoding the path separator character as /, which doesn't work on Windows. Also changes a few invocations of flutter to spawn in a shell to fix shorebird doctor.

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@bryanoltman bryanoltman marked this pull request as ready for review April 25, 2023 13:32
@bryanoltman bryanoltman requested review from eseidel and felangel April 25, 2023 13:32
@@ -159,6 +159,7 @@ This can cause unexpected behavior if you are switching between the tools and th
'flutter',
['--version'],
useVendedFlutter: !checkPathFlutter,
runInShell: true,
Copy link
Contributor

Choose a reason for hiding this comment

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

Does windows require runInShell (I seem to recall it does)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, although seemingly not always. The git commands run find without it. I'm sure I'll learn a lot more about this in the days to come.

@bryanoltman bryanoltman merged commit 12424af into main Apr 25, 2023
@bryanoltman bryanoltman deleted the bo/windows-path-fixes branch April 25, 2023 14:25
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.

3 participants