Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Codegen plugins, powered by WASM #1684

Merged
merged 8 commits into from
Jun 25, 2022
Merged

Conversation

kyleconroy
Copy link
Collaborator

@kyleconroy kyleconroy commented Jun 16, 2022

  • Pick a system-wide cache
  • Verify checksums
  • Cache WASM files
  • Cache modules

@kyleconroy kyleconroy changed the title codegen: WASM-based codegen plugins feat: Codegen plugins, powered by WASM Jun 16, 2022
Comment on lines 24 to 25
"url": "file:///Users/kyle/Downloads/sqlc-gen-json-wasm.wasm",
"checksum": "sha256/afc486dac2068d741d7a4110146559d12a013fd0286f42a2fc7dcd802424ad07"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Obviously will need to update this to a URL

Comment on lines +32 to +36
home, err := os.UserHomeDir()
if err != nil {
return "", err
}
return filepath.Join(home, "sqlc", "mod"), nil
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to look at the XDG spec

@kyleconroy kyleconroy merged commit dc85f43 into main Jun 25, 2022
@kyleconroy kyleconroy deleted the kyle/codegen-plugins-wasm branch June 25, 2022 09:14
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