You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I´m running gomplate via RunTemplates twice in my code and have identified on windows that f.e. Rename or Delete of used files in the datasource or context are not accessible. I know that gomplate is designed to run as cli.
The problem can be fixed if the opened files are closed which are read at:
datasource_file.go -> readFile()
file.go -> Write()
readers.go -> Read()
Closing the files at this methods solved the leaking, maybe there is a better way.
BR
Robert
The text was updated successfully, but these errors were encountered:
This is the LazyReadCloser, so it can't be closed in the Read function - it must only be closed by the Close function (it's a io.ReadCloser). Ultimately, files opened lazily with this get closed once template execution is complete (here).
I´m running gomplate via RunTemplates twice in my code and have identified on windows that f.e. Rename or Delete of used files in the datasource or context are not accessible. I know that gomplate is designed to run as cli.
The problem can be fixed if the opened files are closed which are read at:
Closing the files at this methods solved the leaking, maybe there is a better way.
BR
Robert
The text was updated successfully, but these errors were encountered: