Skip to content

feat(manifest): add Go import aliases - #493

Merged
akonwi merged 1 commit into
mainfrom
feat/go-import-aliases
Sep 8, 2026
Merged

feat(manifest): add Go import aliases#493
akonwi merged 1 commit into
mainfrom
feat/go-import-aliases

Conversation

@akonwi

@akonwi akonwi commented Sep 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • add [go.imports] manifest mappings for stable Go package aliases
  • expand aliases as package-path prefixes in root projects and Ard dependencies
  • reserve the Ard project name for project-local FFI shorthand
  • invalidate LSP analyses when path dependency manifests change
  • document alias behavior and go.mod ownership

Example

[go.imports]
vaxis = "go.rockorager.dev/vaxis"
use go:vaxis
use go:vaxis/widgets

Testing

  • cd compiler && go test ./... -count=1
  • cd compiler && gopls check manifest/manifest.go manifest/manifest_test.go checker/module_resolver.go checker/go_packages_resolver_test.go go/project_go_import_alias_test.go lsp/analysis/engine.go lsp/analysis/engine_test.go
  • cd website && npm run build
  • checked Cooper directly and through cooper/examples as a path dependency using a temporary manifest alias

@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 10:48pm UTC

@akonwi
akonwi merged commit 8eb2b64 into main Sep 8, 2026
6 checks passed
@akonwi
akonwi deleted the feat/go-import-aliases branch September 8, 2026 22:51
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