Fix golint warnings

This commit is contained in:
Hang Yan
2018-03-25 16:22:08 +08:00
parent ff97e413f2
commit 505cb8b754
7 changed files with 23 additions and 19 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import (
"strings"
)
// getImageTag get tag name from image name
// GetImageTag get tag name from image name
// if no tag is specified return 'latest'
func GetImageTag(image string) string {
// format: registry_host:registry_port/repo_name/image_name:image_tag
@@ -31,7 +31,7 @@ func GetImageTag(image string) string {
}
// getAbsBuildContext returns build context relative to project root dir
// GetAbsBuildContext returns build context relative to project root dir
func GetAbsBuildContext(context string) (string, error) {
cmd := exec.Command("git", "rev-parse", "--show-prefix")
cmd.Dir = context