From efa9d94d8ef59c0d2ba19bc06c8417a87f1ccc09 Mon Sep 17 00:00:00 2001 From: William Brooks Date: Sat, 22 Feb 2020 02:22:59 -0600 Subject: [PATCH] use raw string around regex to make go lint happy --- builder/hyperv/common/step_set_first_boot_device.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/hyperv/common/step_set_first_boot_device.go b/builder/hyperv/common/step_set_first_boot_device.go index da950c123..e58820902 100644 --- a/builder/hyperv/common/step_set_first_boot_device.go +++ b/builder/hyperv/common/step_set_first_boot_device.go @@ -67,7 +67,7 @@ func ParseBootDeviceIdentifier(deviceIdentifier string, generation uint) (string // not a simple option, check for a controllerType:controllerNumber:controllerLocation formatted // device.. - r, err := regexp.Compile("^(IDE|SCSI):(\\d+):(\\d+)$") + r, err := regexp.Compile(`^(IDE|SCSI):(\\d+):(\\d+)$`) if err != nil { return "", 0, 0, err }