From d905113a0aefc70766e5794eb6b4783d2e5f8db2 Mon Sep 17 00:00:00 2001 From: Jorropo Date: Mon, 20 Mar 2023 16:24:10 +0100 Subject: [PATCH] cmd/migrate: use correct strconv.Quote --- cmd/migrate/migrate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/migrate/migrate.go b/cmd/migrate/migrate.go index ca29a93153..d83aa5c0d2 100644 --- a/cmd/migrate/migrate.go +++ b/cmd/migrate/migrate.go @@ -100,7 +100,7 @@ func updateImports(filePath string, dryRun bool) error { } fmt.Printf("changing %s => %s in %s\n", x.Path.Value, newVal, filePath) if !dryRun { - x.Path.Value = fmt.Sprintf(`"%s"`, newVal) + x.Path.Value = strconv.Quote(newVal) fileChanged = true } }