google / clasp

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

Unable to stop pushing manifest file appscript.json = forced to redeploy scipt after each change-push files #994

Open NWPoul opened 6 months ago

NWPoul commented 6 months ago

(Note: Non-breaking issues are likely not to be prioritized. Please consider a PR in addition to your issue) Annoying issue which leads to be required to redeploy script via deployment panel (web UI) after each change/push local files

if appscript.json file is not included in clasp.ignore - clasp push gives warning "manifest file changed" (while it's not!) and asks to owervrite it (if deny - stops pushing)

if appscript.json file IS included in clasp.ignore - clasp push gives error "'Project contents must include a manifest file named appsscript.'"

Expected Behavior

Being able to push changes without needed to redeploy script via web UI

Actual Behavior

Need to redeploy script via web UI after each change / push local files

Steps to Reproduce the Problem

1. 1.

Specifications

NWPoul commented 6 months ago

After manually copy content of appscript.json file from site project to local project (they were different dispite constant pushing/overwriting according to clasp warning and logs) problem with neded of redeploy is gone the file still pushed acc to clasp push log but without warnings and redeploy required

Nu11u5 commented 6 months ago

Are other people modifying the project between your pushes?

The AppsScript server API does not allow pushing individual files. An entire snapshot of the project must be uploaded. The appscript.json file is required to be part of the snapshot for AppsScript to work, so it is impossible for the method you are using to work.

NWPoul commented 6 months ago

Are other people modifying the project between your pushes?

The AppsScript server API does not allow...

Nope I am the only developer for theprojekt so far .. Tthanks for clarifiction