Skip to content

fix(checker): diagnose missing go.mod for project FFI - #494

Merged
akonwi merged 1 commit into
mainfrom
fix/491-project-ffi-go-mod-diagnostic
Sep 8, 2026
Merged

akonwi merged 1 commit into
mainfrom
fix/491-project-ffi-go-mod-diagnostic

Conversation

@akonwi

@akonwi akonwi commented Sep 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • report an actionable diagnostic when project-local FFI shorthand is used without a source go.mod
  • suggest the matching go mod init <project> command and project directory
  • clarify that only standard-library imports work without a source Go module and that the generated synthetic module is not used during checking

Testing

  • cd compiler && go test ./... -count=1
  • cd compiler && gopls check checker/module_resolver.go checker/go_packages_resolver_test.go
  • cd website && npm run build

Fixes #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 11:28pm UTC

@akonwi
akonwi merged commit a5a4851 into main Sep 8, 2026
6 checks passed
@akonwi
akonwi deleted the fix/491-project-ffi-go-mod-diagnostic branch September 8, 2026 23:31

This branch was successfully deployed

1 active deployment
Preview ffc24e58 Deployed Sep 8, 2026 by vercel[bot]
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.

Project-local FFI fails without go.mod despite synthetic-module documentation

1 participant