Open heyealex opened 2 years ago
I think this helps to explain why it does not work.
To workaround this issue, you should try the following:
mod, _ := tfconfig.LoadModuleFromFilesystem(tfconfig.WrapFS(dotFS), "module/test")
Thank you for your response! I've added a task to update our current workaround to use WrapFS instead. I will let you know if I run into any issues.
I'm trying to use
LoadModuleFromFilesystem
on an FS object obtained from the embed package, but since that function uses a custom FS module I get the following error that the FS i supplied does not implement the custom FS:I wrote up a simple example showing what I'm trying to do. I also tested against an afero.FS and got the same result.