Skip to content

refactor: rename purego_ → goffi_ in fakecgo + copyright update - #63

Merged
kolkov merged 1 commit into
mainfrom
refactor/fakecgo-naming
Jul 20, 2026
Merged

refactor: rename purego_ → goffi_ in fakecgo + copyright update#63
kolkov merged 1 commit into
mainfrom
refactor/fakecgo-naming

Conversation

@kolkov

@kolkov kolkov commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Rename all purego_ dynamic import symbols to goffi_ in internal/fakecgo/ (gen.go template, 4 generated symbols files, assembly stubs)
  • Add GoGPU copyright alongside original Ebitengine Authors attribution (Apache-2.0 requires preserving original)
  • Update LICENSE to Andrey Kolkov and GoGPU Contributors (matching gogpu ecosystem pattern)
  • Add NOTICE file documenting Apache-2.0 heritage of fakecgo
  • Unify all SPDX headers from The Goffi Authors to Andrey Kolkov and GoGPU Contributors

Why

The purego_ naming and sole Ebitengine copyright were inherited from our purego fakecgo snapshot (~2024) and never updated. The rest of the codebase (internal/dl/, internal/syscall/) uses goffi_ prefix. This cleanup aligns naming across the project and establishes proper dual copyright attribution.

Test plan

  • Zero purego_ references remaining in fakecgo
  • 18/18 fakecgo files have dual copyright (Ebitengine + GoGPU)
  • go fmt, go build, go test — all clean
  • Cross-compile all 8 platforms ✅

Rename all dynamic import symbols from purego_ prefix to goffi_ to
reflect project identity. The fakecgo package was originally a snapshot
of ebitengine/purego's internal/fakecgo (~2024). The purego_ naming was
inherited but is inconsistent with the rest of the codebase (internal/dl
and internal/syscall use goffi_ prefix).

Add GoGPU copyright alongside original Ebitengine Authors attribution
as required by Apache-2.0 license.
@codecov

codecov Bot commented Jul 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@kolkov
kolkov merged commit 2bd8752 into main Jul 20, 2026
13 checks passed
@kolkov
kolkov deleted the refactor/fakecgo-naming branch July 20, 2026 18:49
besmpl added a commit to besmpl/goffi that referenced this pull request Jul 21, 2026
Document and assert the runtime.iscgo wiring selected by Android's implicit linux build tag, keep RTLD policy internal, split TLS startup diagnostics, and align all Android fakecgo imports with the goffi_ prefix introduced by go-webgpu#63.
kolkov pushed a commit that referenced this pull request Jul 21, 2026
* feat: add Android Bionic loader and errno support

* feat: add Android arm64 fakecgo startup guard

* test: add Android probes and preview documentation

* fix: address Android runtime review feedback

Document and assert the runtime.iscgo wiring selected by Android's implicit linux build tag, keep RTLD policy internal, split TLS startup diagnostics, and align all Android fakecgo imports with the goffi_ prefix introduced by #63.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant