Skip to content

Commit aa46dad

Browse files
cfergeauanjannath
authored andcommitted
libvirt: Fix machine driver command name
It now includes a '-$arch' suffix, such as `crc-driver-libvirt-amd64`. This fixes the downloading of the machine driver binary and avoids some warnings about URL name/file name mismatches. This needs a libmachine update so that it's able to start machine driver binaries with an arch suffix.
1 parent c66f5d3 commit aa46dad

File tree

5 files changed

+20
-7
lines changed

5 files changed

+20
-7
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ require (
1515
github.com/containers/image/v5 v5.31.1
1616
github.com/coreos/go-systemd/v22 v22.5.0
1717
github.com/crc-org/admin-helper v0.5.4
18-
github.com/crc-org/machine v0.0.0-20221028075518-f9b43442196b
18+
github.com/crc-org/machine v0.0.0-20240715101719-0c1bc9eb95f8
1919
github.com/crc-org/vfkit v0.5.1
2020
github.com/cucumber/godog v0.14.1
2121
github.com/cucumber/messages-go/v10 v10.0.3

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46t
5959
github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
6060
github.com/crc-org/admin-helper v0.5.4 h1:Wq6wp6514MipPHHYdoL2VUyhUL9qh26wR1I3qPaVxf4=
6161
github.com/crc-org/admin-helper v0.5.4/go.mod h1:sFkqIILzKrt62CH1bJn5PSBFSdhaCyMdz6BG37N3TBE=
62-
github.com/crc-org/machine v0.0.0-20221028075518-f9b43442196b h1:VPbW5D21B1WToPvEA/EGwhi4e3lXevmRff9M1lUTc5g=
63-
github.com/crc-org/machine v0.0.0-20221028075518-f9b43442196b/go.mod h1:9bEsvgLE3LIPfvGATt9Mo73gG1CKKS6A/++VqOONKqc=
62+
github.com/crc-org/machine v0.0.0-20240715101719-0c1bc9eb95f8 h1:KVdN/5PTWRwth2suZEQCY54MXSXp1SAUd54CiE952oI=
63+
github.com/crc-org/machine v0.0.0-20240715101719-0c1bc9eb95f8/go.mod h1:trWeQimjfE3dJ8qWOxI4ePtYm13aecK42bf01s6h/Nc=
6464
github.com/crc-org/vfkit v0.5.1 h1:r1zNf1g1bLbgu5BgIQodirvYaIGWJQ91eS/PIgNO6lo=
6565
github.com/crc-org/vfkit v0.5.1/go.mod h1:Hqi20zQcqXMk6JqvByvOidHYv+KzPx3G+cjkdGSWv60=
6666
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=

pkg/crc/machine/libvirt/constants.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ const (
2121
)
2222

2323
const (
24-
machineDriverCommand = "crc-driver-libvirt"
2524
MachineDriverVersion = "0.13.8"
2625
)
2726

2827
var (
29-
MachineDriverDownloadURL = fmt.Sprintf("https://github.com/crc-org/machine-driver-libvirt/releases/download/%s/%s-%s", MachineDriverVersion, machineDriverCommand, runtime.GOARCH)
28+
machineDriverCommand = fmt.Sprintf("crc-driver-libvirt-%s", runtime.GOARCH)
29+
MachineDriverDownloadURL = fmt.Sprintf("https://github.com/crc-org/machine-driver-libvirt/releases/download/%s/%s", MachineDriverVersion, machineDriverCommand)
3030
)
3131

3232
func MachineDriverPath() string {

vendor/github.com/crc-org/machine/libmachine/drivers/plugin/localbinary/plugin.go

Lines changed: 14 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ github.com/coreos/go-systemd/v22/daemon
202202
github.com/crc-org/admin-helper/pkg/client
203203
github.com/crc-org/admin-helper/pkg/hosts
204204
github.com/crc-org/admin-helper/pkg/types
205-
# github.com/crc-org/machine v0.0.0-20221028075518-f9b43442196b
205+
# github.com/crc-org/machine v0.0.0-20240715101719-0c1bc9eb95f8
206206
## explicit; go 1.17
207207
github.com/crc-org/machine/drivers/libvirt
208208
github.com/crc-org/machine/libmachine/drivers

0 commit comments

Comments
 (0)