From e1f8bd011affa6159b0b3ce202edc713b8231080 Mon Sep 17 00:00:00 2001 From: Khaled Blah Date: Wed, 13 Mar 2024 16:15:22 +0100 Subject: [PATCH] A8S-1964: add 'version' string to 'buildpack.toml' --- .gitignore | 1 + buildpack.toml | 1 + git/build.go | 7 +++---- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 03e0202..be51c83 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,4 @@ .idea /.bin /build +/out diff --git a/buildpack.toml b/buildpack.toml index 7b10dfa..d239da0 100644 --- a/buildpack.toml +++ b/buildpack.toml @@ -6,6 +6,7 @@ api = "0.8" id = "anynines/gitcredentials" keywords = ["git", "credentials"] name = "GIT credentials" + version = "{{.version}}" [[buildpack.licenses]] type = "MIT License" diff --git a/git/build.go b/git/build.go index 87ae706..5a23b75 100644 --- a/git/build.go +++ b/git/build.go @@ -175,11 +175,10 @@ func (e BuildEnvironment) Initialize() error { "credential.helper", strings.Join([]string{ "'", - "cache", - "--timeout", - string(defaultTimeout), + strings.Join([]string{"cache", "--timeout", string(defaultTimeout)}, " "), "'", - }, " "), + }, + ""), }) }