Open everspader opened 3 years ago
I think overwriting the file as a common task would be fine too.
Unfortunately only push
command has --force
argument still.
@everspader Just to be sure the issue still exist, can you try replacing @google/clasp
2.3.0 with forked-clasp
which is more advanced?
npm uninstall -g @google/clasp
npm install -g forked-clasp
Expected Behavior
DO NOT create a
.clasp.json
file when aclasp clone
command fails for some reason, for example, invalid ScriptID or login. This means that if the issue is fixed, and the clone is run again, it will fail because there's already a.clasp.json
file in the directory.Actual Behavior
A
.clasp.json
file is created whenever aclasp clone
command is run regardless of the success or failure of the output.Steps to Reproduce the Problem
clasp login
to any accountclasp clone
with a wrong ScriptIDclasp clone
with the correct ScriptIDSpecifications
node -v
): 15.5.1clasp -v
): 2.3.0