Skip to content

Commit f134361

Browse files
committed
dev: fix go1.12 compilation
1 parent 6e00f51 commit f134361

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/gen_readme/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func genReadme(tmplPath, outPath string) error {
4545
func getLatestVersion() (string, error) {
4646
out, err := exec.Command("git", "tag", "-l", "--sort=-v:refname").Output()
4747
if err != nil {
48-
return "", fmt.Errorf("failed to run git tag: %w", err)
48+
return "", fmt.Errorf("failed to run git tag: %s", err)
4949
}
5050

5151
lines := bytes.Split(out, []byte("\n"))
@@ -91,7 +91,7 @@ func buildTemplateContext() (map[string]interface{}, error) {
9191

9292
latestVersion, err := getLatestVersion()
9393
if err != nil {
94-
return nil, fmt.Errorf("failed to get latest version: %w", err)
94+
return nil, fmt.Errorf("failed to get latest version: %s", err)
9595
}
9696

9797
return map[string]interface{}{

0 commit comments

Comments
 (0)