statamic / spock

Automatically perform git commits, pushes, and other cli actions when Statamic content changes
95 stars 16 forks source link

Spock + gpg #40

Open zackphilipps opened 5 years ago

zackphilipps commented 5 years ago

👋 Hello! I'm wondering if anyone has successfully gotten Spock working with GPG or knows of any workarounds besides disabling commit signing. Right now, commits don't work and I keep getting this error:

[2019-06-18 19:03:23] production.ERROR: Spock command exited unsuccessfully:
Command: git commit -m "Addon settings saved by admin"
Output: No output
Error: 
error: cannot run gpg: No such file or directory
error: gpg failed to sign the data
fatal: failed to write commit object  

Not a huge deal since I'm just on my local machine, but again, just putting this out there in case anyone has any insight.

Maybe it's worth adding the ability to specify some more Git configs within Spock's settings? What if you could arbitrarily add any config you wanted, and Spock would just add git -c key=value (in this case, git -c commit.gpgsign=false) to each commit? Is there anything inherently terrible in that approach?

jesseleite commented 5 years ago

Good question, I don't know much about GPG. You mention being on your local machine, but do you use GPG in your production environment?

zackphilipps commented 5 years ago

@jesseleite I don't believe so.