From e8e92fe6c604425cafd71c3dba93a64fdfad6785 Mon Sep 17 00:00:00 2001 From: Ed Maxwell-Lyte <2248005+edwardmlyte@users.noreply.github.com> Date: Wed, 9 Jan 2019 16:30:54 +0000 Subject: [PATCH] rename clashing import --- builder/virtualbox/common/driver_4_2.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/builder/virtualbox/common/driver_4_2.go b/builder/virtualbox/common/driver_4_2.go index 20de72c00..8b6402c3a 100644 --- a/builder/virtualbox/common/driver_4_2.go +++ b/builder/virtualbox/common/driver_4_2.go @@ -3,7 +3,7 @@ package common import ( "bytes" "fmt" - "github.com/hashicorp/go-version" + versionUtil "github.com/hashicorp/go-version" "log" "os/exec" "regexp" @@ -27,16 +27,16 @@ func (d *VBox42Driver) CreateSATAController(vmName string, name string, portcoun portCountArg := "--portcount" - currentVersion, err := version.NewVersion(version) + currentVersion, err := versionUtil.NewVersion(version) if err != nil { return err } - versionUsingPortCount, err := version.NewVersion("4.3") + firstVersionUsingPortCount, err := versionUtil.NewVersion("4.3") if err != nil { return err } - if currentVersion.LessThan(versionUsingPortCount) { + if currentVersion.LessThan(firstVersionUsingPortCount) { portCountArg = "--sataportcount" }