Skip to content
This repository was archived by the owner on Oct 19, 2024. It is now read-only.

Commit e4903b6

Browse files
committed
go.mod: github.com/lima-vm/vz/v4
Rename `github.com/Code-Hex/vz/v3` to `github.com/lima-vm/vz/v4` so that our fork can be consumed without the `replace` directive in `go.mod`. Fix issue 3 Also remove the contents specific to https://github.com/Code-Hex/vz (`CONTRIBUTING.md`, `FUNDING.yml`, etc.) Signed-off-by: Akihiro Suda <[email protected]>
1 parent 9f62857 commit e4903b6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+76
-99
lines changed

.github/FUNDING.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
<!-- Thanks for sending a pull request! Here are some tips for you:
2-
1. If this is your first time, please read our contributor guidelines: https://github.com/Code-Hex/vz/blob/master/CONTRIBUTING.md
3-
2. Please create a new issue before creating this PR. However, You can continue it without creating issues if this PR fixes any documentations such as typo.
4-
3. Do not send Pull Requests for large (150 ~ lines) code changes. If so, I am not motivated to review your code. Basically, I write the code.
1+
<!-- Thanks for sending a pull request!
2+
If this is your first time, please read our contributor guidelines: https://lima-vm.io/docs/community/contributing/
53
-->
64

75
## Which issue(s) this PR fixes:

CONTRIBUTING.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
vz - Go binding with Apple [Virtualization.framework](https://developer.apple.com/documentation/virtualization?language=objc)
22
=======
33

4-
[![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)
4+
[![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)
55

66
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.
77

88
> 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.
99
10+
This repository <https://github.com/lima-vm/vz> was forked from <https://github.com/Code-Hex/vz/tree/c3198942b1b797ac424b673e06769f45bef0d275>.
11+
1012
## Usage
1113

12-
Please see the [example](https://github.com/Code-Hex/vz/tree/main/example) directory.
14+
Please see the [example](./example) directory.
1315

1416
## Requirements
1517

@@ -21,11 +23,9 @@ Please see the [example](https://github.com/Code-Hex/vz/tree/main/example) direc
2123
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:
2224

2325
```
24-
$ go get github.com/Code-Hex/vz/v3
26+
$ go get github.com/lima-vm/vz/v4
2527
```
2628

27-
Deprecated older versions (v1, v2).
28-
2929
## Feature Overview
3030

3131
- ✅ 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.
7474

7575
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).
7676

77+
<!-- If you wish to change Code-Hex/vz/v3 below to lima-vm/vz/v4, make sure to obtain the actual console output with lima-vm/vz/v4 -->
7778
```
7879
$ go build .
7980
# github.com/Code-Hex/vz/v3
@@ -112,11 +113,13 @@ There are two items to check.
112113

113114
## Knowledge for the Apple Virtualization.framework
114115

115-
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.
116-
117-
https://github.com/Code-Hex/vz/wiki
116+
Quote from [@Code-Hex](https://github.com/Code-Hex)'s upstream repository <https://github.com/Code-Hex/vz/tree/c3198942b1b797ac424b673e06769f45bef0d275>:
118117

119-
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!
118+
> 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.
119+
>
120+
> https://github.com/Code-Hex/vz/wiki
121+
>
122+
> 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!
120123
121124
## Testing
122125

audio.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ package vz
88
*/
99
import "C"
1010
import (
11-
"github.com/Code-Hex/vz/v3/internal/objc"
11+
"github.com/lima-vm/vz/v4/internal/objc"
1212
)
1313

1414
// AudioDeviceConfiguration interface for an audio device configuration.

bootloader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"fmt"
1212
"os"
1313

14-
"github.com/Code-Hex/vz/v3/internal/objc"
14+
"github.com/lima-vm/vz/v4/internal/objc"
1515
)
1616

1717
// BootLoader is the interface of boot loader definitions.

bootloader_arm64.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ package vz
1010
*/
1111
import "C"
1212
import (
13-
"github.com/Code-Hex/vz/v3/internal/objc"
13+
"github.com/lima-vm/vz/v4/internal/objc"
1414
)
1515

1616
// MacOSBootLoader is a boot loader configuration for booting macOS on Apple Silicon.

cgoutil.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ import (
6464
"fmt"
6565
"unsafe"
6666

67-
"github.com/Code-Hex/vz/v3/internal/objc"
67+
"github.com/lima-vm/vz/v4/internal/objc"
6868
)
6969

7070
// pointer is a type alias which is able to use as embedded type and

clipboard.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ package vz
77
*/
88
import "C"
99
import (
10-
"github.com/Code-Hex/vz/v3/internal/objc"
10+
"github.com/lima-vm/vz/v4/internal/objc"
1111
)
1212

1313
// SpiceAgentPortAttachment is an attachment point that enables

configuration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ package vz
99
*/
1010
import "C"
1111
import (
12-
"github.com/Code-Hex/vz/v3/internal/objc"
12+
"github.com/lima-vm/vz/v4/internal/objc"
1313
)
1414

1515
// VirtualMachineConfiguration defines the configuration of a VirtualMachine.

0 commit comments

Comments
 (0)