From 089a39a3f896a43e759e0b494e4acfe2982aca7e Mon Sep 17 00:00:00 2001 From: Florian Weikert Date: Thu, 11 Feb 2021 01:32:00 +0100 Subject: [PATCH] Ensure Go 1.11 compatibility... (#215) ...by replacing strings.ReplaceAll() with strings.Replace(). Progress towards #206 --- repositories/gcs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repositories/gcs.go b/repositories/gcs.go index 57dc28f2..dbdf2357 100644 --- a/repositories/gcs.go +++ b/repositories/gcs.go @@ -82,7 +82,7 @@ func listDirectoriesInReleaseBucket(prefix string) ([]string, bool, error) { func getVersionsFromGCSPrefixes(versions []string) []string { result := make([]string, len(versions)) for i, v := range versions { - noSlashes := strings.ReplaceAll(v, "/", "") + noSlashes := strings.Replace(v, "/", "", -1) result[i] = strings.TrimSuffix(noSlashes, "release") } return result