From ccd1eabc66d3fef316cee95dce744260d7c891dd Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Sun, 25 Sep 2022 18:58:35 -0400 Subject: Clarify git URL docs - stop implying subpaths starting with '//' are a good idea Signed-off-by: Dave Henderson --- docs/content/datasources.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/content/datasources.md b/docs/content/datasources.md index aac4b079..8531ad37 100644 --- a/docs/content/datasources.md +++ b/docs/content/datasources.md @@ -491,7 +491,7 @@ namespace is: env Accessing a file from a local repo (using arguments): ```console -$ gomplate -d which=git+file:///repos/go-which -i 'GOPATH on Windows is {{ (datasource "which" "//appveyor.yml").environment.GOPATH }}' +$ gomplate -d which=git+file:///repos/go-which/ -i 'GOPATH on Windows is {{ (datasource "which" ".//appveyor.yml").environment.GOPATH }}' GOPATH on Windows is c:\gopath ``` @@ -503,13 +503,13 @@ $ gomplate -d 'cmd=git+https://github.com/hairyhenderson/go-which//cmd/which#ref Authenticating with the SSH Agent ```console -$ gomplate -d 'which=git+ssh://git@github.com/hairyhenderson/go-which' -i '{{ len (ds "which") }}' +$ gomplate -d 'which=git+ssh://git@github.com/hairyhenderson/go-which/' -i '{{ len (ds "which") }}' 18 ``` Using arguments to specify different repos ```console -$ gomplate -d 'hairyhenderson=git+https://github.com/hairyhenderson' -i '{{ (ds "hairyhenderson" "/gomplate//docs-src/content/functions/env.yml").ns }}' +$ gomplate -d 'hairyhenderson=git+https://github.com/hairyhenderson/' -i '{{ (ds "hairyhenderson" "gomplate//docs-src/content/functions/env.yml").ns }}' env ``` -- cgit v1.2.3