chore: switch purego dependency to bnema/purego fork
Replace local path replace directive with GitHub URL pointing to bnema/purego@91aa177 to avoid accidental pushes to upstream.
- commit
- 8b029581aa8aebd90aa84a2b638058062afa9bdd
- author
- brice · · 2026-03-23 19:51 UTC
- parent
- f14f9b6
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
51 files · +1860 -488
M go.mod +2 -0
| @@ -3,3 +3,5 @@ module github.com/bnema/puregotk | |||
| 3 | 3 | go 1.26.1 | |
| 4 | 4 | ||
| 5 | 5 | require github.com/ebitengine/purego v0.10.0 | |
| 6 | + | ||
| 7 | + | replace github.com/ebitengine/purego => github.com/bnema/purego v0.0.0-20260323095903-91aa177a2704 | |
| @@ -3,3 +3,5 @@ module github.com/bnema/puregotk | |||||
| 3 | go 1.26.1 | 3 | go 1.26.1 | ||
| 4 | 4 | ||||
| 5 | require github.com/ebitengine/purego v0.10.0 | 5 | require github.com/ebitengine/purego v0.10.0 | ||
| 6 | + | ||||
| 7 | + | replace github.com/ebitengine/purego => github.com/bnema/purego v0.0.0-20260323095903-91aa177a2704 | |||
M go.sum +2 -2 generated file: collapsed
M vendor/github.com/ebitengine/purego/README.md +3 -0
| @@ -43,6 +43,7 @@ Tier 2 platforms are supported by PureGo on a best-effort basis. Critical bugs o | |||
| 43 | 43 | - **Android**: 386<sup>1</sup>, arm<sup>1</sup> | |
| 44 | 44 | - **FreeBSD**: amd64<sup>2</sup>, arm64<sup>2</sup> | |
| 45 | 45 | - **Linux**: 386, arm, loong64, ppc64le, riscv64, s390x<sup>1</sup> | |
| 46 | + | - **NetBSD**: amd64<sup>2</sup>, arm64<sup>2</sup> | |
| 46 | 47 | - **Windows**: 386<sup>3</sup>, arm<sup>3,4</sup> | |
| 47 | 48 | ||
| 48 | 49 | #### Support Notes | |
| @@ -112,8 +113,10 @@ This is a list of the copied files: | |||
| 112 | 113 | * `internal/fakecgo/setenv.go` from package `runtime/cgo` | |
| 113 | 114 | * `internal/fakecgo/freebsd.go` from package `runtime/cgo` | |
| 114 | 115 | * `internal/fakecgo/netbsd.go` from package `runtime/cgo` | |
| 116 | + | * `internal/fakecgo/linux.go` from package `runtime/cgo` | |
| 115 | 117 | ||
| 116 | 118 | The `internal/fakecgo/go_GOOS.go` files were modified from `runtime/cgo/gcc_GOOS_GOARCH.go`. | |
| 119 | + | The `internal/fakecgo/linux.go` file is a combination of `runtime/cgo/linux.go` and `runtime/cgo/linux_syscall.c`. | |
| 117 | 120 | ||
| 118 | 121 | The files `abi_*.h` and `internal/fakecgo/abi_*.h` are the same because Bazel does not support cross-package use of | |
| 119 | 122 | `#include` so we need each one once per package. (cf. [issue](https://github.com/bazelbuild/rules_go/issues/3636)) | |
| @@ -43,6 +43,7 @@ Tier 2 platforms are supported by PureGo on a best-effort basis. Critical bugs o | |||||
| 43 | - **Android**: 386<sup>1</sup>, arm<sup>1</sup> | 43 | - **Android**: 386<sup>1</sup>, arm<sup>1</sup> | ||
| 44 | - **FreeBSD**: amd64<sup>2</sup>, arm64<sup>2</sup> | 44 | - **FreeBSD**: amd64<sup>2</sup>, arm64<sup>2</sup> | ||
| 45 | - **Linux**: 386, arm, loong64, ppc64le, riscv64, s390x<sup>1</sup> | 45 | - **Linux**: 386, arm, loong64, ppc64le, riscv64, s390x<sup>1</sup> | ||
| 46 | + | - **NetBSD**: amd64<sup>2</sup>, arm64<sup>2</sup> | |||
| 46 | - **Windows**: 386<sup>3</sup>, arm<sup>3,4</sup> | 47 | - **Windows**: 386<sup>3</sup>, arm<sup>3,4</sup> | ||
| 47 | 48 | ||||
| 48 | #### Support Notes | 49 | #### Support Notes | ||
| @@ -112,8 +113,10 @@ This is a list of the copied files: | |||||
| 112 | * `internal/fakecgo/setenv.go` from package `runtime/cgo` | 113 | * `internal/fakecgo/setenv.go` from package `runtime/cgo` | ||
| 113 | * `internal/fakecgo/freebsd.go` from package `runtime/cgo` | 114 | * `internal/fakecgo/freebsd.go` from package `runtime/cgo` | ||
| 114 | * `internal/fakecgo/netbsd.go` from package `runtime/cgo` | 115 | * `internal/fakecgo/netbsd.go` from package `runtime/cgo` | ||
| 116 | + | * `internal/fakecgo/linux.go` from package `runtime/cgo` | |||
| 115 | 117 | ||||
| 116 | The `internal/fakecgo/go_GOOS.go` files were modified from `runtime/cgo/gcc_GOOS_GOARCH.go`. | 118 | The `internal/fakecgo/go_GOOS.go` files were modified from `runtime/cgo/gcc_GOOS_GOARCH.go`. | ||
| 119 | + | The `internal/fakecgo/linux.go` file is a combination of `runtime/cgo/linux.go` and `runtime/cgo/linux_syscall.c`. | |||
| 117 | 120 | ||||
| 118 | The files `abi_*.h` and `internal/fakecgo/abi_*.h` are the same because Bazel does not support cross-package use of | 121 | The files `abi_*.h` and `internal/fakecgo/abi_*.h` are the same because Bazel does not support cross-package use of | ||
| 119 | `#include` so we need each one once per package. (cf. [issue](https://github.com/bazelbuild/rules_go/issues/3636)) | 122 | `#include` so we need each one once per package. (cf. [issue](https://github.com/bazelbuild/rules_go/issues/3636)) | ||