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

Unable to generate multiple VFS into same package #80

Closed
curio77 opened this issue Apr 22, 2020 · 1 comment
Closed

Unable to generate multiple VFS into same package #80

curio77 opened this issue Apr 22, 2020 · 1 comment

Comments

@curio77
Copy link

curio77 commented Apr 22, 2020

It is impossible to generate multiple vfsgen instances into the same package because the generated files will conflict due to each of them defining a vfsgen۰FS type. To avoid this, the user should be able to specify the type name as well, or it should include the designated instance name.

@dmitshur
Copy link
Member

Yes, there is a limit of one vfsgen-generated filesystem variable per package with the current design. There are some advantages and disadvantage to it. In many cases, using a union filesystem removes the need for generating more than 1 FS per package, but otherwise multiple packages need to be used. See #23 (comment) for more details.

I'll close this as duplicate of #23.

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