From 5ae5bcd8f8306c9f93308b328ab8328ef413f5f3 Mon Sep 17 00:00:00 2001 From: Petter Remen Date: Fri, 10 Jun 2022 12:40:07 +0200 Subject: [PATCH] Wrap `cache_key` in single-quotes in docs Without forcing the value to be interpreted as a string, the `{` bracket starts a new object block, and gives the following failure from drone: ``` yaml: invalid map key: map[interface {}]interface {}{"checksum \"yarn.lock\"":interface {}(nil)} ``` --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7bd787df..9678389d 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ steps: pull: true settings: restore: true - cache_key: {{ .Commit.Branch }}-{{ checksum "go.mod" }} # default if ommitted is {{ .Commit.Branch }} + cache_key: '{{ .Commit.Branch }}-{{ checksum "go.mod" }}' # default if ommitted is {{ .Commit.Branch }} bucket: drone-cache-bucket region: eu-west-1 mount: @@ -93,7 +93,7 @@ steps: from_secret: aws_secret_access_key settings: rebuild: true - cache_key: {{ .Commit.Branch }}-{{ checksum "go.mod" }} # default if ommitted is {{ .Commit.Branch }} + cache_key: '{{ .Commit.Branch }}-{{ checksum "go.mod" }}' # default if ommitted is {{ .Commit.Branch }} bucket: drone-cache-bucket region: eu-west-1 mount: