Skip to content

Cellpack Accepts Firebase Configs #327

@ascibisz

Description

@ascibisz

Use Case

  • For the cellpack client, we would like to pass a reference to a firebase config to our packing job and have cellpack use that to pack it

Solution

  • Set an optional flag -c for pack remote recipes

Current Error Message (when trying pass a firebase config reference as -c)

Traceback (most recent call last):
File "/usr/local/bin/pack", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.9/site-packages/cellpack/bin/pack.py", line 73, in main
fire.Fire(pack)
File "/usr/local/lib/python3.9/site-packages/fire/core.py", line 135, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/usr/local/lib/python3.9/site-packages/fire/core.py", line 468, in _Fire
component, remaining_args = _CallAndUpdateTrace(
File "/usr/local/lib/python3.9/site-packages/fire/core.py", line 684, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "/usr/local/lib/python3.9/site-packages/cellpack/bin/pack.py", line 33, in pack
packing_config_data = ConfigLoader(config_path).config
File "/usr/local/lib/python3.9/site-packages/cellpack/autopack/loaders/config_loader.py", line 60, in __init__
self.config = self._read()
File "/usr/local/lib/python3.9/site-packages/cellpack/autopack/loaders/config_loader.py", line 104, in _read
new_values = json.load(open(self.file_path, "r"))
FileNotFoundError: [Errno 2] No such file or directory: 'firebase:configs/ZYlUMEtMef3xnx7EkDrz'

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions