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 issue with Python Functions when path has spaces #5858

Merged
merged 2 commits into from
May 17, 2023

Conversation

aalej
Copy link
Contributor

@aalej aalej commented May 17, 2023

Description

Proposed fix for #5854.

Related to #5830. Issue seems to be similar as the error message shows the incomplete path when path has spaces. e.g. if path is /Users/<user>/Desktop/project directory/function, error message will shows path /Users/<user>/Desktop/project.

Scenarios Tested

  1. Create a directory with a space
  2. Run firebase init functions and run through the setup for Python functions.
  3. Run firebase init emulators and setup the functions emulator
  4. Run firebase emulators:start

Sample Commands

firebase emulators:start

@aalej aalej requested a review from taeold May 17, 2023 17:31
CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Daniel Lee <[email protected]>
@taeold taeold merged commit 60b91bd into firebase:master May 17, 2023
32 checks passed
tonyjhuang pushed a commit that referenced this pull request May 22, 2023
<!--

Thank you for contributing to the Firebase community! Please fill out the form below.

Run the linter and test suite
==============================
Run `npm test` to make sure your changes compile properly and the tests all pass on your local machine. We've hooked up this repo with continuous integration to double check those things for you.

-->

### Description

<!-- Are you fixing a bug? Implementing a new feature? Make sure we have the context around your change. Link to other relevant issues or pull requests. -->

Proposed fix for #5854.

Related to  #5830. Issue seems to be similar as the error message shows the incomplete path when path has spaces.  e.g. if path is `/Users/<user>/Desktop/project directory/function`, error message will shows path `/Users/<user>/Desktop/project`.

### Scenarios Tested

<!-- Write a list of all the user journeys and edge cases you've tested. Instructions for manual testing can be found at https://github.com/firebase/firebase-tools/blob/master/.github/CONTRIBUTING.md#development-setup -->

1. Create a directory with a space 
2. Run `firebase init functions` and run through the setup for Python functions.
3. Run `firebase init emulators` and setup the functions emulator
4. Run `firebase emulators:start`


### Sample Commands

<!-- Proposing a change to commands or flags? Provide examples of how they will be used. -->

`firebase emulators:start`
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.

None yet

2 participants