Dear Gophers,
I have some more thoughts about the vendoring issue I observed earlier.
Preface :
Basically while vendoring other than go files, nothing is copied in the vendor folder(except the embed package).
It can be some Readme.MD, or some text file, or HTML templates.
Issue Details:
But I still see some issues.
1. As per package description, this will work compile-time, which means the files will be embedded in the binary and affect the size of the artifact.
2. Secondly I may want to use these files from the folder for different purposes, ex: - I need not embed them, but as a part of my own build step I collect all such dependencies from my module and move them to the common serve folder from where they are served to the web.
3. it could be literally any purpose.
Ultimately I think it's the purview of developers on how to use those files being part of the package, hence they should not be discarded by applying smart compilation.
Now there is another associated problem, Let's say I add that manually in my vendor folder, when I run 'go mod vendor', all these files are forcibly deleted while updating and I am back to square one.
Can you help to resolve this?
Regards,
Sachin