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

mod/modfile: split syntax into its own data structure #3220

Open
rogpeppe opened this issue Jun 12, 2024 · 0 comments
Open

mod/modfile: split syntax into its own data structure #3220

rogpeppe opened this issue Jun 12, 2024 · 0 comments
Labels
modules Issues related to CUE modules and the experimental implementation NeedsFix

Comments

@rogpeppe
Copy link
Member

Currently the modfile.File type is used directly to marshal and unmarshal the module.cue
contents. However in the future we want to be able to preserve comments and other formatting
that cannot be expressed in the Go data structure. The Go modfile package splits
the syntax from the parsed result and we should probably do the same for the CUE one.

@rogpeppe rogpeppe added NeedsFix modules Issues related to CUE modules and the experimental implementation labels Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
modules Issues related to CUE modules and the experimental implementation NeedsFix
Projects
Status: Backlog
Development

No branches or pull requests

1 participant