Skip to content

Commit

Permalink
libvirt/constants.go: Add arch info to machine-driver-libvirt binary
Browse files Browse the repository at this point in the history
machine-driver-libvirt now have arm64 and amd64 binary for linux platfrom. This PR
will make sure correct binary is downloaded and used for specific
platform.
  • Loading branch information
praveenkumar committed Jun 21, 2024
1 parent cadee95 commit 52b9be6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/crc/machine/libvirt/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package libvirt

import (
"fmt"
"runtime"

"github.com/crc-org/crc/v2/pkg/crc/constants"
)
Expand All @@ -20,11 +21,11 @@ const (
)

const (
machineDriverCommand = "crc-driver-libvirt"
MachineDriverVersion = "0.13.8"
)

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

Expand Down

0 comments on commit 52b9be6

Please sign in to comment.