Open WRFitch opened 1 year ago
An update here is that we did some investigating and the issue is with the match / case
construct in the "problem" file. Charmcraft uses the ast
module to parse the file, and because the charmcraft snap uses Python 3.8 it can only parse 3.8 code (afaik the module is not "forward compatible").
The workaround is to replace the match/case with if/elses, but we should look into bumping the charmcraft snap to core22/python3.10.
When building the opensearch charm on charmcraft 2.3, it now fails to parse a file named helper_charm.py.
Here's the interesting part of the stacktrace:
To reproduce, just build the
main
branch of the opensearch charm with charmcraft v2.3.