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

Json UNMarshal of tfconfig.Module fails due to ResourceMode not supporting UNmarshalJSON #79

Open
garthy opened this issue May 5, 2022 · 1 comment

Comments

@garthy
Copy link

garthy commented May 5, 2022

So I'm able to marshal tfconfig.Module to a file but I can't load it back.

Error: json: cannot unmarshal string into Go struct field Data.data_resources.mode of type tfconfig.ResourceMode

This is useful for a module info cache file

@stevelizcano
Copy link

Same problem here, Unmarshal will always fail.

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

No branches or pull requests

2 participants