Skip to content

Commit

Permalink
fix: error formating to build the code
Browse files Browse the repository at this point in the history
  • Loading branch information
ccojocar committed Aug 28, 2018
1 parent 0515244 commit 3a44226
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,15 @@ func getLatestTag(c config) (string, error) {
} else {
_, err := exec.LookPath("git")
if err != nil {
return "", errors.New(fmt.Sprint("error running git: %v", err))
return "", fmt.Errorf("error running git: %v", err)
}
cmd := exec.Command("git", "fetch", "--tags", "-v")
for _, e := range os.Environ() {
cmd.Env = append(cmd.Env, e)
}
err = cmd.Run()
if err != nil {
return "", errors.New(fmt.Sprint("error fetching tags: %v", err))
return "", fmt.Errorf("error fetching tags: %v", err)
}
out, err := exec.Command("git", "tag").Output()
if err != nil {
Expand Down

0 comments on commit 3a44226

Please sign in to comment.