Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/vfsgendev: Run generator in package directory #37
This is meant as a proof-of-concept, only. I did not want to spam the discussion in #36 with the diff.
This commit replaces the use of a temporary folder with a temporary file in the package directory itself. Since the generator will write to the package directory anyway, permissions should not be a problem. The import path of the target package is used as part of the filename to reduce the chance of overwriting an existing file.
For some reason running the generator this way does not trigger the error