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

Update DB generator to not use deprecated entities since go 1.22 #13970

Open
tomponline opened this issue Aug 23, 2024 · 1 comment
Open

Update DB generator to not use deprecated entities since go 1.22 #13970

tomponline opened this issue Aug 23, 2024 · 1 comment
Assignees
Labels
Improvement Improve to current situation
Milestone

Comments

@tomponline
Copy link
Member

DB generator use of the ast package has been deprecated in Go 1.22 https://tip.golang.org/doc/go1.22

The following declarations related to syntactic identifier resolution are now deprecated: Ident.Obj, Object, Scope, File.Scope, File.Unresolved, Importer, Package, NewPackage. In general, identifiers cannot be accurately resolved without type information. Consider, for example, the identifier K in T{K: ""}: it could be the name of a local variable if T is a map type, or the name of a field if T is a struct type. New programs should use the go/types package to resolve identifiers; see Object, Info.Uses, and Info.Defs for details.

https://tip.golang.org/doc/go1.22

@tomponline tomponline added the Improvement Improve to current situation label Aug 23, 2024
@tomponline tomponline added this to the lxd-6.2 milestone Aug 23, 2024
@tomponline
Copy link
Member Author

@masnax any news on this one? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Improve to current situation
Projects
None yet
Development

No branches or pull requests

2 participants