From a3859b36bfb2aea5f357bec2987730da1168c4b9 Mon Sep 17 00:00:00 2001 From: Matchu Date: Tue, 2 Nov 2021 21:14:47 -0700 Subject: [PATCH] Safer deploy version names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Huh, I was previously using ISO timestamps, but it turns out Yarn doesn't handle binary paths very reliably when your folder names contain colons 😳 so `canvas` was failing with `node-gyp not found` I've documented it here in this self-answered StackOverflow question, so hopefully the next future person searching will find my answer! https://stackoverflow.com/q/69819597/107415 --- deploy/playbooks/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/playbooks/deploy.yml b/deploy/playbooks/deploy.yml index 6ebc57f..ecdcdf3 100644 --- a/deploy/playbooks/deploy.yml +++ b/deploy/playbooks/deploy.yml @@ -17,7 +17,7 @@ when: not skip_build - name: Generate a version name from the current timestamp - command: date '+%Y-%m-%dT%H:%M:%S' + command: date '+%Y-%m-%d-%s' register: new_app_version - name: Print out the new version name