From 2a7a8298e19c8a809df69e03c1e6f02701b85e51 Mon Sep 17 00:00:00 2001 From: Rob Loranger Date: Thu, 29 Aug 2019 16:20:41 -0700 Subject: [PATCH] strings.ReplaceAll is not in go 1.11 --- updates.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/updates.go b/updates.go index 248f691..63b2378 100644 --- a/updates.go +++ b/updates.go @@ -68,7 +68,9 @@ func (uc updatesCache) LatestVersion() string { func (uc updatesCache) ReleaseURL() string { ver := strings.TrimPrefix(uc.latestVersion, "v") ver = strings.TrimSuffix(ver, ".0") - return "https://blog.writefreely.org/version-" + strings.ReplaceAll(ver, ".", "-") + // hack until go 1.12 in build/travis + seg := strings.Split(ver, ".") + return "https://blog.writefreely.org/version-" + strings.Join(seg, "-") } // newUpdatesCache returns an initialized updates cache