Deployments using Atlassian Firebase pipe are failing with this odd error...
Traceback (most recent call last):
File "/main.py", line 170, in <module>
pipe.run()
File "/main.py", line 69, in run
functions_dir_path = data["functions"]["source"]
TypeError: list indices must be integers or slices, not str
This failed the same way with versions 1.3.0 and 3.0.0 of the pipe "atlassian/firebase-deploy"
IIUC, here's the code block from the Atlassian code...
# check for alternative path to functions directory
try:
with open('firebase.json', 'r') as f:
data = json.load(f)
functions_dir_path = data["functions"]["source"]
except FileNotFoundError:
pass
except KeyError:
pass
It seems to be looking at our firebase.json for nodes source that is under a node functions. This doesn't seem to jive with my understanding of a firebase.json file. I don't think it even has a plural 'functions' node.
Any help is appreciated.