Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Use correct ignore file for beta9 and beam cli commands (#818)
Previously, commands would always get the default sdk settings. This was caused because importing `sync.py` caused the default settings to be loaded no matter what. Now, we don't set `_settings` in `sync.py` and instead access it indirectly so that importing sync doesn't initialize settings with defaults. When "beam" is included in the modules, we load the beam config instead of the default beta9 config. Old behavior: ```bash ~/Dev/beam/bs/endpoint ❯ beam deploy app.py:handler => Building image => Using cached image => Syncing files Reading .beta9ignore file # WRONG ``` New behavior: ```bash ~/Dev/beam/bs/endpoint ❯ beam deploy app.py:handler => Building image => Using cached image => Syncing files Reading .beamignore file # CORRECT ```
- Loading branch information