clasp
clasp copied to clipboard
clasp run doesn't use ~/.clasprc.json and requires .clasprc.json in local directory
(Note: Non-breaking issues are likely not to be prioritized. Please consider a PR in addition to your issue)
Expected Behavior
Use ~/.clasprc.json by default
Actual Behavior
Error message when running clasp run
:
(ENOENT) Error: ENOENT: no such file or directory, open '[localdir]/.clasprc.json'
Steps to Reproduce the Problem
- authenticate clasp, resulting in a
~/.clasprc.json
file - from some random directory, clone a project using
clasp clone
- in that same directory, run
clasp run function
- clasp does connect to console.developers.google.com but then looks for a local .clasprc.json and fails.
- note that specifying the path to the
~/.clasprc.json
file doesn't work either. Specifying only-A ~
results in authentication failing ("Could not read API credentials. Are you logged in globally?")
Specifications
- Node version (
node -v
): v17.5.0 - Version (
clasp -v
): 2.4.1 - OS (Mac/Linux/Windows): Mac