You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 causes clasp 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 to clasp pull with files landing in the correct (current) directory
Actual 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 directory
Actual 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 project
rename your project directory
make a change in the remote appscript code editor
clasp pull again, the updates are not applied in the current, renamed directory
Specifications
Node version (node -v): v12.22.9
Version (clasp -v): 2.4.2
OS (Mac/Linux/Windows): Linux
The text was updated successfully, but these errors were encountered:
.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: