diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 77a4a49b..00000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -github: Code-Hex diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 05404251..4d698006 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,7 +1,5 @@ - ## Which issue(s) this PR fixes: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index 5b681976..00000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,23 +0,0 @@ -## How to contribute to github.com/Code-Hex/vz - -#### **Did you find a bug?** - -* **Ensure the bug was not already reported** by searching on GitHub under [Issues](https://github.com/Code-Hex/vz/issues). - -* If you're unable to find an open issue addressing the problem, [open a new one](https://github.com/Code-Hex/vz/issues/new). Be sure to include a **title and clear description**, as much relevant information as possible, and a **code sample** or an **executable test case** demonstrating the expected behavior that is not occurring. - -#### **Did you write a patch that fixes a bug?** - -* Open a new GitHub pull request with the patch. - -* Ensure the PR description clearly describes the problem and solution. **Must** be included the relevant issue number. - -> **Note** -> Basically, this can be done after a policy has been decided like how to write the code or how to implement, etc in an issue. - -> **Warning** -> We generally do not accept some pull requests like either did not follow the owner's opinion or harassing. - -#### **Did you fix whitespace, format code, or make a purely cosmetic patch?** - -Changes that are cosmetic in nature and do not add anything substantial to the stability, functionality, or testability of github.com/Code-Hex/vz will generally not be accepted. diff --git a/README.md b/README.md index 7c9cce16..c3396984 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,17 @@ vz - Go binding with Apple [Virtualization.framework](https://developer.apple.com/documentation/virtualization?language=objc) ======= -[![Build](https://github.com/Code-Hex/vz/actions/workflows/compile.yml/badge.svg)](https://github.com/Code-Hex/vz/actions/workflows/compile.yml) [![Go Reference](https://pkg.go.dev/badge/github.com/Code-Hex/vz/v3.svg)](https://pkg.go.dev/github.com/Code-Hex/vz/v3) +[![Build](https://github.com/lima-vm/vz/actions/workflows/compile.yml/badge.svg)](https://github.com/lima-vm/vz/actions/workflows/compile.yml) [![Go Reference](https://pkg.go.dev/badge/github.com/lima-vm/vz/v4.svg)](https://pkg.go.dev/github.com/lima-vm/vz/v4) vz provides the power of the Apple Virtualization.framework in Go. Put here is block quote of overreview which is written what is Virtualization.framework from the document. > The Virtualization framework provides high-level APIs for creating and managing virtual machines (VM) on Apple silicon and Intel-based Mac computers. Use this framework to boot and run macOS or Linux-based operating systems in custom environments that you define. The framework supports the [Virtual I/O Device (VIRTIO)](https://docs.oasis-open.org/virtio/virtio/v1.1/csprd01/virtio-v1.1-csprd01.html) specification, which defines standard interfaces for many device types, including network, socket, serial port, storage, entropy, and memory-balloon devices. +This repository was forked from . + ## Usage -Please see the [example](https://github.com/Code-Hex/vz/tree/main/example) directory. +Please see the [example](./example) directory. ## Requirements @@ -21,11 +23,9 @@ Please see the [example](https://github.com/Code-Hex/vz/tree/main/example) direc Initialize your project by creating a folder and then running `go mod init github.com/your/repo` ([learn more](https://go.dev/blog/using-go-modules)) inside the folder. Then install vz with the go get command: ``` -$ go get github.com/Code-Hex/vz/v3 +$ go get github.com/lima-vm/vz/v4 ``` -Deprecated older versions (v1, v2). - ## Feature Overview - ✅ Virtualize Linux on a Mac **(x86_64, arm64)** @@ -74,6 +74,7 @@ If you compile using an older Xcode SDK, you will get the following warnings. This example warns that macOS 12.3 API and macOS 13 API are not available in the binary build. This means these APIs are not available even if you are running this binary on a modern OS (macOS 12.3 or macOS 13). + ``` $ go build . # github.com/Code-Hex/vz/v3 @@ -112,11 +113,13 @@ There are two items to check. ## Knowledge for the Apple Virtualization.framework -There is a lot of knowledge required to use this Apple Virtualization.framework, but the information is too scattered and very difficult to understand. In most cases, this can be found in [the official documentation](https://developer.apple.com/documentation/virtualization?language=objc). However, the Linux kernel knowledge required to use the feature provided by this framework is not documented. Therefore, I have compiled the knowledge I have gathered so far into this wiki. - -https://github.com/Code-Hex/vz/wiki +Quote from [@Code-Hex](https://github.com/Code-Hex)'s upstream repository : -Anyone is free to edit this wiki. It would help someone if you could add information not listed here. Let's make a good wiki together! +> There is a lot of knowledge required to use this Apple Virtualization.framework, but the information is too scattered and very difficult to understand. In most cases, this can be found in [the official documentation](https://developer.apple.com/documentation/virtualization?language=objc). However, the Linux kernel knowledge required to use the feature provided by this framework is not documented. Therefore, I have compiled the knowledge I have gathered so far into this wiki. +> +> https://github.com/Code-Hex/vz/wiki +> +> Anyone is free to edit this wiki. It would help someone if you could add information not listed here. Let's make a good wiki together! ## Testing diff --git a/audio.go b/audio.go index cf7443f1..b548096b 100644 --- a/audio.go +++ b/audio.go @@ -8,7 +8,7 @@ package vz */ import "C" import ( - "github.com/Code-Hex/vz/v3/internal/objc" + "github.com/lima-vm/vz/v4/internal/objc" ) // AudioDeviceConfiguration interface for an audio device configuration. diff --git a/bootloader.go b/bootloader.go index 61331382..80fe6b0a 100644 --- a/bootloader.go +++ b/bootloader.go @@ -11,7 +11,7 @@ import ( "fmt" "os" - "github.com/Code-Hex/vz/v3/internal/objc" + "github.com/lima-vm/vz/v4/internal/objc" ) // BootLoader is the interface of boot loader definitions. diff --git a/bootloader_arm64.go b/bootloader_arm64.go index c57c7dac..bc6e6135 100644 --- a/bootloader_arm64.go +++ b/bootloader_arm64.go @@ -10,7 +10,7 @@ package vz */ import "C" import ( - "github.com/Code-Hex/vz/v3/internal/objc" + "github.com/lima-vm/vz/v4/internal/objc" ) // MacOSBootLoader is a boot loader configuration for booting macOS on Apple Silicon. diff --git a/cgoutil.go b/cgoutil.go index 7799fc10..0daf1ef6 100644 --- a/cgoutil.go +++ b/cgoutil.go @@ -64,7 +64,7 @@ import ( "fmt" "unsafe" - "github.com/Code-Hex/vz/v3/internal/objc" + "github.com/lima-vm/vz/v4/internal/objc" ) // pointer is a type alias which is able to use as embedded type and diff --git a/clipboard.go b/clipboard.go index abeeedbc..af1f4408 100644 --- a/clipboard.go +++ b/clipboard.go @@ -7,7 +7,7 @@ package vz */ import "C" import ( - "github.com/Code-Hex/vz/v3/internal/objc" + "github.com/lima-vm/vz/v4/internal/objc" ) // SpiceAgentPortAttachment is an attachment point that enables diff --git a/configuration.go b/configuration.go index e59aa82f..83afadf5 100644 --- a/configuration.go +++ b/configuration.go @@ -9,7 +9,7 @@ package vz */ import "C" import ( - "github.com/Code-Hex/vz/v3/internal/objc" + "github.com/lima-vm/vz/v4/internal/objc" ) // VirtualMachineConfiguration defines the configuration of a VirtualMachine. diff --git a/configuration_arm64.go b/configuration_arm64.go index 3f4c4be0..91b5a468 100644 --- a/configuration_arm64.go +++ b/configuration_arm64.go @@ -9,7 +9,7 @@ package vz # include "virtualization_14_arm64.h" */ import "C" -import "github.com/Code-Hex/vz/v3/internal/objc" +import "github.com/lima-vm/vz/v4/internal/objc" // ValidateSaveRestoreSupport Determines whether the framework can save or restore the VM’s current configuration. // diff --git a/console.go b/console.go index 653833b1..b90db74d 100644 --- a/console.go +++ b/console.go @@ -9,7 +9,7 @@ import "C" import ( "unsafe" - "github.com/Code-Hex/vz/v3/internal/objc" + "github.com/lima-vm/vz/v4/internal/objc" ) // ConsoleDeviceConfiguration interface for an console device configuration. diff --git a/debug.go b/debug.go index 26d9aeae..05d57ce6 100644 --- a/debug.go +++ b/debug.go @@ -12,7 +12,7 @@ import "C" import ( "runtime" - "github.com/Code-Hex/vz/v3/internal/objc" + "github.com/lima-vm/vz/v4/internal/objc" ) // DebugStubConfiguration is an interface to debug configuration. diff --git a/entropy.go b/entropy.go index 68941cd4..c81b9f46 100644 --- a/entropy.go +++ b/entropy.go @@ -7,7 +7,7 @@ package vz */ import "C" import ( - "github.com/Code-Hex/vz/v3/internal/objc" + "github.com/lima-vm/vz/v4/internal/objc" ) // VirtioEntropyDeviceConfiguration is used to expose a source of entropy for the guest operating system’s random-number generator. diff --git a/example/gui-linux/go.mod b/example/gui-linux/go.mod index 5d767596..b5b6e133 100644 --- a/example/gui-linux/go.mod +++ b/example/gui-linux/go.mod @@ -1,12 +1,12 @@ -module github.com/Code-Hex/vz/example/gui-linux +module github.com/lima-vm/vz/example/gui-linux go 1.19 -replace github.com/Code-Hex/vz/v3 => ../../ +replace github.com/lima-vm/vz/v4 => ../../ require ( - github.com/Code-Hex/vz/v3 v3.0.0-00010101000000-000000000000 github.com/Songmu/prompter v0.5.1 + github.com/lima-vm/vz/v4 v4.0.0-00010101000000-000000000000 ) require ( diff --git a/example/gui-linux/main.go b/example/gui-linux/main.go index 5db3f99a..3c35ea25 100644 --- a/example/gui-linux/main.go +++ b/example/gui-linux/main.go @@ -10,7 +10,7 @@ import ( "runtime" "time" - "github.com/Code-Hex/vz/v3" + "github.com/lima-vm/vz/v4" ) var install bool diff --git a/example/gui-linux/rosseta_directory_share.go b/example/gui-linux/rosseta_directory_share.go index 17f0374d..8aa404cf 100644 --- a/example/gui-linux/rosseta_directory_share.go +++ b/example/gui-linux/rosseta_directory_share.go @@ -3,7 +3,7 @@ package main -import "github.com/Code-Hex/vz/v3" +import "github.com/lima-vm/vz/v4" func createRosettaDirectoryShareConfiguration() (*vz.VirtioFileSystemDeviceConfiguration, error) { return nil, errIgnoreInstall diff --git a/example/gui-linux/rosseta_directory_share_arm64.go b/example/gui-linux/rosseta_directory_share_arm64.go index 30c654d8..f9e395a8 100644 --- a/example/gui-linux/rosseta_directory_share_arm64.go +++ b/example/gui-linux/rosseta_directory_share_arm64.go @@ -7,7 +7,7 @@ import ( "fmt" "log" - "github.com/Code-Hex/vz/v3" + "github.com/lima-vm/vz/v4" "github.com/Songmu/prompter" ) diff --git a/example/linux/go.mod b/example/linux/go.mod index 9164dc7a..6bc082c4 100644 --- a/example/linux/go.mod +++ b/example/linux/go.mod @@ -1,11 +1,11 @@ -module github.com/Code-Hex/vz/example/linux +module github.com/lima-vm/vz/example/linux go 1.19 -replace github.com/Code-Hex/vz/v3 => ../../ +replace github.com/lima-vm/vz/v4 => ../../ require ( - github.com/Code-Hex/vz/v3 v3.0.0-00010101000000-000000000000 + github.com/lima-vm/vz/v4 v4.0.0-00010101000000-000000000000 github.com/pkg/term v1.1.0 golang.org/x/sys v0.16.0 ) diff --git a/example/linux/main.go b/example/linux/main.go index 952447e0..90b5514b 100644 --- a/example/linux/main.go +++ b/example/linux/main.go @@ -7,7 +7,7 @@ import ( "strings" "syscall" - "github.com/Code-Hex/vz/v3" + "github.com/lima-vm/vz/v4" "github.com/pkg/term/termios" "golang.org/x/sys/unix" ) diff --git a/example/macOS/go.mod b/example/macOS/go.mod index e6cf175f..019459e8 100644 --- a/example/macOS/go.mod +++ b/example/macOS/go.mod @@ -1,10 +1,10 @@ -module github.com/Code-Hex/vz/example/macOS +module github.com/lima-vm/vz/example/macOS go 1.19 -replace github.com/Code-Hex/vz/v3 => ../../ +replace github.com/lima-vm/vz/v4 => ../../ -require github.com/Code-Hex/vz/v3 v3.0.0-00010101000000-000000000000 +require github.com/lima-vm/vz/v4 v4.0.0-00010101000000-000000000000 require ( github.com/Code-Hex/go-infinity-channel v1.0.0 // indirect diff --git a/example/macOS/installer.go b/example/macOS/installer.go index 40b18504..dfffd870 100644 --- a/example/macOS/installer.go +++ b/example/macOS/installer.go @@ -6,7 +6,7 @@ import ( "os" "time" - "github.com/Code-Hex/vz/v3" + "github.com/lima-vm/vz/v4" ) func installMacOS(ctx context.Context) error { diff --git a/example/macOS/main.go b/example/macOS/main.go index 897702db..5c935ea4 100644 --- a/example/macOS/main.go +++ b/example/macOS/main.go @@ -10,7 +10,7 @@ import ( "runtime" "time" - "github.com/Code-Hex/vz/v3" + "github.com/lima-vm/vz/v4" ) var install bool diff --git a/example_test.go b/example_test.go index 483ed5cb..54a18e64 100644 --- a/example_test.go +++ b/example_test.go @@ -3,7 +3,7 @@ package vz_test import ( "errors" - "github.com/Code-Hex/vz/v3" + "github.com/lima-vm/vz/v4" ) func ExampleErrUnsupportedOSVersion() { diff --git a/go.mod b/go.mod index da975be8..aa5074b3 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/Code-Hex/vz/v3 +module github.com/lima-vm/vz/v4 go 1.19 diff --git a/graphics.go b/graphics.go index 5126667f..3e9f261c 100644 --- a/graphics.go +++ b/graphics.go @@ -7,7 +7,7 @@ package vz */ import "C" import ( - "github.com/Code-Hex/vz/v3/internal/objc" + "github.com/lima-vm/vz/v4/internal/objc" ) // GraphicsDeviceConfiguration is an interface for a graphics device configuration. diff --git a/graphics_arm64.go b/graphics_arm64.go index dbeaed60..07b8b1b8 100644 --- a/graphics_arm64.go +++ b/graphics_arm64.go @@ -10,7 +10,7 @@ package vz */ import "C" import ( - "github.com/Code-Hex/vz/v3/internal/objc" + "github.com/lima-vm/vz/v4/internal/objc" ) // MacGraphicsDeviceConfiguration is a configuration for a display attached to a Mac graphics device. diff --git a/internal/progress/reader_test.go b/internal/progress/reader_test.go index 54af0db9..d1bc1df6 100644 --- a/internal/progress/reader_test.go +++ b/internal/progress/reader_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/Code-Hex/vz/v3/internal/progress" + "github.com/lima-vm/vz/v4/internal/progress" ) func TestReader(t *testing.T) { diff --git a/issues_test.go b/issues_test.go index 076cec73..ff83b99e 100644 --- a/issues_test.go +++ b/issues_test.go @@ -9,7 +9,7 @@ import ( "strings" "testing" - "github.com/Code-Hex/vz/v3/internal/objc" + "github.com/lima-vm/vz/v4/internal/objc" ) func newTestConfig(t *testing.T) *VirtualMachineConfiguration { diff --git a/keyboard.go b/keyboard.go index f1627e0a..95afe2d4 100644 --- a/keyboard.go +++ b/keyboard.go @@ -8,7 +8,7 @@ package vz */ import "C" import ( - "github.com/Code-Hex/vz/v3/internal/objc" + "github.com/lima-vm/vz/v4/internal/objc" ) // KeyboardConfiguration interface for a keyboard configuration. diff --git a/keyboard_arm64.go b/keyboard_arm64.go index f2f530e0..15aedcdd 100644 --- a/keyboard_arm64.go +++ b/keyboard_arm64.go @@ -10,7 +10,7 @@ package vz */ import "C" import ( - "github.com/Code-Hex/vz/v3/internal/objc" + "github.com/lima-vm/vz/v4/internal/objc" ) // MacKeyboardConfiguration is a struct that defines the configuration diff --git a/memory_balloon.go b/memory_balloon.go index 5a8a2d6c..27ff43b5 100644 --- a/memory_balloon.go +++ b/memory_balloon.go @@ -7,7 +7,7 @@ package vz */ import "C" import ( - "github.com/Code-Hex/vz/v3/internal/objc" + "github.com/lima-vm/vz/v4/internal/objc" ) // MemoryBalloonDeviceConfiguration for a memory balloon device configuration. diff --git a/network.go b/network.go index 0250e6ce..3ba992e0 100644 --- a/network.go +++ b/network.go @@ -14,7 +14,7 @@ import ( "syscall" "unsafe" - "github.com/Code-Hex/vz/v3/internal/objc" + "github.com/lima-vm/vz/v4/internal/objc" ) // BridgedNetwork defines a network interface that bridges a physical interface with a virtual machine. diff --git a/network_test.go b/network_test.go index 314d927b..fa482d29 100644 --- a/network_test.go +++ b/network_test.go @@ -4,7 +4,7 @@ import ( "net" "testing" - "github.com/Code-Hex/vz/v3" + "github.com/lima-vm/vz/v4" ) func TestFileHandleNetworkDeviceAttachmentMTU(t *testing.T) { diff --git a/platform.go b/platform.go index fc3bf8e6..135b6cc7 100644 --- a/platform.go +++ b/platform.go @@ -13,7 +13,7 @@ import ( "os" "unsafe" - "github.com/Code-Hex/vz/v3/internal/objc" + "github.com/lima-vm/vz/v4/internal/objc" ) // PlatformConfiguration is an interface for a platform configuration. diff --git a/platform_arm64.go b/platform_arm64.go index 8e78deed..a8e43e6e 100644 --- a/platform_arm64.go +++ b/platform_arm64.go @@ -10,7 +10,7 @@ package vz */ import "C" import ( - "github.com/Code-Hex/vz/v3/internal/objc" + "github.com/lima-vm/vz/v4/internal/objc" ) // MacPlatformConfiguration is the platform configuration for booting macOS on Apple silicon. diff --git a/pointing_device.go b/pointing_device.go index b1368d8c..e9956e65 100644 --- a/pointing_device.go +++ b/pointing_device.go @@ -8,7 +8,7 @@ package vz */ import "C" import ( - "github.com/Code-Hex/vz/v3/internal/objc" + "github.com/lima-vm/vz/v4/internal/objc" ) // PointingDeviceConfiguration is an interface for a pointing device configuration. diff --git a/pointing_device_arm64.go b/pointing_device_arm64.go index 4bced868..3c08e625 100644 --- a/pointing_device_arm64.go +++ b/pointing_device_arm64.go @@ -10,7 +10,7 @@ package vz */ import "C" import ( - "github.com/Code-Hex/vz/v3/internal/objc" + "github.com/lima-vm/vz/v4/internal/objc" ) // MacTrackpadConfiguration is a struct that defines the configuration diff --git a/serial_console.go b/serial_console.go index 92309cb2..a3ef1e30 100644 --- a/serial_console.go +++ b/serial_console.go @@ -9,7 +9,7 @@ import "C" import ( "os" - "github.com/Code-Hex/vz/v3/internal/objc" + "github.com/lima-vm/vz/v4/internal/objc" ) // SerialPortAttachment interface for a serial port attachment. diff --git a/shared_directory.go b/shared_directory.go index 8b628890..4a11dbe5 100644 --- a/shared_directory.go +++ b/shared_directory.go @@ -11,7 +11,7 @@ import "C" import ( "os" - "github.com/Code-Hex/vz/v3/internal/objc" + "github.com/lima-vm/vz/v4/internal/objc" ) // DirectorySharingDeviceConfiguration for a directory sharing device configuration. diff --git a/shared_directory_arm64.go b/shared_directory_arm64.go index 3610cf10..e0ab9f76 100644 --- a/shared_directory_arm64.go +++ b/shared_directory_arm64.go @@ -16,7 +16,7 @@ import ( "runtime/cgo" "unsafe" - "github.com/Code-Hex/vz/v3/internal/objc" + "github.com/lima-vm/vz/v4/internal/objc" ) // LinuxRosettaAvailability represents an availability of Rosetta support for Linux binaries. diff --git a/shared_directory_arm64_test.go b/shared_directory_arm64_test.go index 45b9601e..38984c29 100644 --- a/shared_directory_arm64_test.go +++ b/shared_directory_arm64_test.go @@ -9,7 +9,7 @@ import ( "strings" "testing" - "github.com/Code-Hex/vz/v3" + "github.com/lima-vm/vz/v4" ) func TestLinuxRosettaAvailabilityString(t *testing.T) { diff --git a/shared_directory_test.go b/shared_directory_test.go index 19e3d728..85167684 100644 --- a/shared_directory_test.go +++ b/shared_directory_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/Code-Hex/vz/v3" + "github.com/lima-vm/vz/v4" ) func TestVirtioFileSystemDeviceConfigurationTag(t *testing.T) { diff --git a/socket.go b/socket.go index a4b30891..4ad051b4 100644 --- a/socket.go +++ b/socket.go @@ -16,7 +16,7 @@ import ( "time" "unsafe" - "github.com/Code-Hex/vz/v3/internal/objc" + "github.com/lima-vm/vz/v4/internal/objc" ) // SocketDeviceConfiguration for a socket device configuration. diff --git a/socket_test.go b/socket_test.go index badff23a..e006953d 100644 --- a/socket_test.go +++ b/socket_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/Code-Hex/vz/v3" + "github.com/lima-vm/vz/v4" ) func TestVirtioSocketListener(t *testing.T) { diff --git a/storage.go b/storage.go index f1c51c43..e52fc162 100644 --- a/storage.go +++ b/storage.go @@ -14,7 +14,7 @@ import ( "os" "time" - "github.com/Code-Hex/vz/v3/internal/objc" + "github.com/lima-vm/vz/v4/internal/objc" ) type baseStorageDeviceAttachment struct{} diff --git a/storage_test.go b/storage_test.go index 834cc3bd..1c18786c 100644 --- a/storage_test.go +++ b/storage_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "github.com/Code-Hex/vz/v3" + "github.com/lima-vm/vz/v4" ) func TestBlockDeviceIdentifier(t *testing.T) { diff --git a/virtualization.go b/virtualization.go index 8d0a2c91..0faec7b7 100644 --- a/virtualization.go +++ b/virtualization.go @@ -14,7 +14,7 @@ import ( "unsafe" infinity "github.com/Code-Hex/go-infinity-channel" - "github.com/Code-Hex/vz/v3/internal/objc" + "github.com/lima-vm/vz/v4/internal/objc" ) // VirtualMachineState represents execution state of the virtual machine. diff --git a/virtualization_arm64.go b/virtualization_arm64.go index 53ce06a4..ad726803 100644 --- a/virtualization_arm64.go +++ b/virtualization_arm64.go @@ -23,8 +23,8 @@ import ( "sync/atomic" "unsafe" - "github.com/Code-Hex/vz/v3/internal/objc" - "github.com/Code-Hex/vz/v3/internal/progress" + "github.com/lima-vm/vz/v4/internal/objc" + "github.com/lima-vm/vz/v4/internal/progress" ) // WithStartUpFromMacOSRecovery is an option to specifiy whether to start up @@ -364,7 +364,7 @@ func downloadRestoreImage(ctx context.Context, url string, destPath string) (*pr return nil, err } - req.Header.Add("User-Agent", "github.com/Code-Hex/vz") + req.Header.Add("User-Agent", "github.com/lima-vm/vz") req.Header.Add("Range", fmt.Sprintf("bytes=%d-", fileInfo.Size())) resp, err := http.DefaultClient.Do(req) diff --git a/virtualization_helper.h b/virtualization_helper.h index 7914efdd..9b484d9a 100644 --- a/virtualization_helper.h +++ b/virtualization_helper.h @@ -5,9 +5,9 @@ NSDictionary *dumpProcessinfo(); -#define RAISE_REASON_MESSAGE \ - "This may possibly be a bug due to library handling errors.\n" \ - "I would appreciate it if you could report it to https://github.com/Code-Hex/vz/issues/new/choose\n\n" \ +#define RAISE_REASON_MESSAGE \ + "This may possibly be a bug due to library handling errors.\n" \ + "I would appreciate it if you could report it to https://github.com/lima-vm/vz/issues/new/choose\n\n" \ "Information: %@\n" #define RAISE_UNSUPPORTED_MACOS_EXCEPTION() \ diff --git a/virtualization_test.go b/virtualization_test.go index f42d8dd1..3b1fdef1 100644 --- a/virtualization_test.go +++ b/virtualization_test.go @@ -9,8 +9,8 @@ import ( "testing" "time" - "github.com/Code-Hex/vz/v3" - "github.com/Code-Hex/vz/v3/internal/testhelper" + "github.com/lima-vm/vz/v4" + "github.com/lima-vm/vz/v4/internal/testhelper" "golang.org/x/crypto/ssh" ) diff --git a/virtualization_view.m b/virtualization_view.m index 7ff298b2..5a72a4b1 100644 --- a/virtualization_view.m +++ b/virtualization_view.m @@ -95,8 +95,8 @@ - (NSTextField *)makePoweredByLabel attributes:@{ NSForegroundColorAttributeName : [NSColor labelColor] }] autorelease]; - NSURL *repositoryURL = [NSURL URLWithString:@"https://github.com/Code-Hex/vz"]; - NSMutableAttributedString *repository = [self makeHyperLink:@"github.com/Code-Hex/vz" withURL:repositoryURL]; + NSURL *repositoryURL = [NSURL URLWithString:@"https://github.com/lima-vm/vz"]; + NSMutableAttributedString *repository = [self makeHyperLink:@"github.com/lima-vm/vz" withURL:repositoryURL]; [poweredByAttr appendAttributedString:repository]; [poweredByAttr addAttribute:NSFontAttributeName value:[NSFont systemFontOfSize:12] @@ -368,7 +368,7 @@ - (NSControlStateValue)capturesSystemKeysState - (void)reportIssue:(id)sender { - NSString *url = @"https://github.com/Code-Hex/vz/issues/new"; + NSString *url = @"https://github.com/lima-vm/vz/issues/new"; [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:url]]; } diff --git a/vzerror_test.go b/vzerror_test.go index 791e56da..4497b6a5 100644 --- a/vzerror_test.go +++ b/vzerror_test.go @@ -3,7 +3,7 @@ package vz_test import ( "testing" - "github.com/Code-Hex/vz/v3" + "github.com/lima-vm/vz/v4" ) func TestErrorCodeString(t *testing.T) {