google / clasp

🔗 Command Line Apps Script Projects
https://developers.google.com/apps-script/guides/clasp
Apache License 2.0
4.59k stars 428 forks source link

Symlinks cause silent errors on push #549

Open gwillz opened 5 years ago

gwillz commented 5 years ago

This is not the same as #255 or #264, although definitely related.

Bad symlinks will cause clasp push to fail - this is good. What's bad is the given error message. Luckily I solved it pretty quickly, but I if I were having a bad day I could have been here a while.

I can successfully perform a push by fixing any bad symlinks in my project. What's important here is the error message returned by clasp.

Expected Behavior

After clasp push, the reported error should be informative.

Actual Behavior

$ clasp push
Push failed. Errors:

Steps to Reproduce the Problem

  1. Create a new project: clasp create
  2. Create a bad symlink, ln -s /this/does/not/exist.ts test.ts
  3. Call clasp push

Specifications

grant commented 5 years ago

OK, thanks for the report. Will have to look at the error handler for clasp push.