Skip to content

Commit

Permalink
remove used golang spec functions
Browse files Browse the repository at this point in the history
  • Loading branch information
rcrozean committed Sep 15, 2023
1 parent 42899f6 commit c2c8aeb
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -370,20 +370,9 @@ func GenerateReadme(readmeFmt string, r Release) string {
return fmt.Sprintf(readmeFmt, title, curRelease, trackTag, artifactTable, armBuild, amdBuild, patch, fSpec, sSpec)
}

func generateGoSpec() error {
return nil
}

func updateGoSpec(fc *string, r Release) string {
gpO := fmt.Sprintf("%%global go_patch %d", r.GoPatchVersion()-1)
gpN := fmt.Sprintf("%%global go_patch %d", r.GoPatchVersion())

return strings.Replace(*fc, gpO, gpN, 1)
}

func addPatchGoSpec(fc *string, r Release, patch string) string {
gpO := fmt.Sprintf("%%global go_patch %d", r.GoPatchVersion()-1)
gpN := fmt.Sprintf("%%global go_patch %d", r.GoPatchVersion())

return strings.Replace(*fc, gpO, gpN, 1)
}

0 comments on commit c2c8aeb

Please sign in to comment.