Skip to content

feat(checker): add project FFI import shorthand - #492

Merged
akonwi merged 1 commit into
mainfrom
feat/project-ffi-import-shorthand
Sep 8, 2026
Merged

feat(checker): add project FFI import shorthand#492
akonwi merged 1 commit into
mainfrom
feat/project-ffi-import-shorthand

Conversation

@akonwi

@akonwi akonwi commented Sep 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • map use go:<ard-package>/ffi to each package's canonical Go module path
  • preserve package context during whole-program Go import scanning, including Ard dependencies
  • document the stable project-name shorthand and nested FFI imports

Testing

  • cd compiler && go test ./... -count=1
  • cd compiler && gopls check checker/module_resolver.go checker/go_import_scan.go checker/checker.go checker/go_packages_resolver_test.go go/project_ffi_shorthand_test.go
  • cd website && npm run build
  • checked rewritten shorthand imports in sibling ard-cloudflare, sql, and cooper projects
  • checked and built cooper/examples/quickstart.ard with cooper as a path dependency

Notes

Existing canonical Go import paths remain supported. Project-local FFI without a source go.mod remains tracked separately in #491.

@vercel

vercel Bot commented Sep 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ard-lang-dev Ready Ready Preview Sep 8, 2026 9:00pm UTC

@akonwi
akonwi merged commit a0fb801 into main Sep 8, 2026
6 checks passed
@akonwi
akonwi deleted the feat/project-ffi-import-shorthand branch September 8, 2026 22:18
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