.clasp
"rootDir" directive does not use a relative path and causes lots of issues/confusion
#1009
Milestone
.clasp
"rootDir" directive does not use a relative path and causes lots of issues/confusion
#1009
.clasp file:
Use case 1:
I have a clasp project on which there are two users working, and pushing changes to a git repo before deployment.
The
.clasp
file includes a "rootDir" directive for the project that is an absolute path including my username, which causesclasp pull
to fail with a "Cound not write file." error (they have a different username of course).Expected Behavior
I expect a collaborator to be able to
git clone
the repo, and be able toclasp pull
with files landing in the correct (current) directoryActual Behavior
Files are not written ("Could not write file."), because they are trying to write to another home directory altogether
Use case 2:
I have a clasp project at
/home/cleary/appscript/project1/
and decide to rearrange my local directories, with the project1 folder moving to/home/cleary/source/project1/
Expected Behavior
I expect to
clasp pull
with files landing in the current directoryActual Behavior
The files get written to the old path, and my current working directory does not get updated
Steps to Reproduce the Problem
clasp pull
a new projectclasp pull
again, the updates are not applied in the current, renamed directorySpecifications
node -v
): v12.22.9clasp -v
): 2.4.2The text was updated successfully, but these errors were encountered: