This commit is contained in:
numerology 2020-01-30 12:04:27 -08:00
parent 92db384291
commit 963e64b8c7
2 changed files with 3 additions and 3 deletions

View File

@ -28,8 +28,8 @@ go_register_toolchains()
http_archive(
name = "bazel_gazelle",
sha256 = "7949fc6cc17b5b191103e97481cf8889217263acf52e00b560683413af204fcb",
urls = ["https://github.com/bazelbuild/bazel-gazelle/releases/download/0.16.0/bazel-gazelle-0.16.0.tar.gz"],
sha256 = "86c6d481b3f7aedc1d60c1c211c6f76da282ae197c3b3160f54bd3a8f847896f",
urls = ["https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.19.1/bazel-gazelle-v0.19.1.tar.gz"],
)
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")

View File

@ -189,7 +189,7 @@ func ReadPipelineFile(fileName string, fileReader io.Reader, maxFileLength int)
func PatchPipelineDefaultParameter(file []byte, toPatch map[string]string) ([]byte, error) {
pipelineRawString := string(file)
for key, value := range toPatch {
strings.ReplaceAll(pipelineRawString, key, value)
strings.Replace(pipelineRawString, key, value)
}
return []byte(pipelineRawString), nil
}