plugins icon indicating copy to clipboard operation
plugins copied to clipboard

[docs] content keeps getting appended if a different output directory is specified

Open arangamani opened this issue 4 years ago • 1 comments

If the output directory is customized, the content to gen/docs.json keeps getting appended every time the code is generated.

I see we have this code here that attempts to delete the gen/docs.json file before generating it again but it only works if the output directory is not customized (the default is the current directory).

arangamani avatar Jun 09 '21 16:06 arangamani

This is a current known limitation, the plugin does not have access to the custom location and changing the interface with Goa would be a breaking change. There might be "less-than-elegant" ways to tackle this issue, e.g. by having Goa define an environment variable that contains the path that plugins can leverage, a bit on the fence as to whether this is worth it... At the very least though that limitation should be documented, I'll add that to the README.

raphael avatar Jun 09 '21 19:06 raphael

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] avatar Oct 20 '22 05:10 github-actions[bot]