`go mod vendor` only includes what is needed to build your main module. 1.16 has https://pkg.go.dev/embed so you can embed static assets (such as template/html files) into your final binary (they will also be available in the vendor directory but I don't think this is your final goal)
On Sunday, May 9, 2021 at 5:03:58 PM UTC+2 Sachin Puranik wrote: > Hi Gophers, > I noticed the following issue while vendoring the library. > > Preface : > Basically, I created the module, for myself. This module contains > rendering templates and HTML files, few test files alongside the code. they > are all tightly coupled to my module. > > Issue: > when I use this module in another project as a vendor module, I noticed > that all the code files are copied well, but all my test files, HTML > templates, and files are completely ignored. They are not available in the > vendor folder. > > Kindly let me know if there is an option to achieve this, or am I doing > something wrong? > > Thanks in advance, > Best regards, > Sachin. > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/66c0b083-fd53-4c96-8541-60a0fc23a581n%40googlegroups.com.