Hi Sean,
Thanks for the response. Though I am not sure if the solution satisfies my
use case. I am doing some experimentation and will get back to you soon
with the findings.

Thanks and Regards,
Sachin.

On Sun, May 9, 2021 at 9:47 PM Sean Liao <seankhl...@gmail.com> wrote:

> `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 a topic in the
> Google Groups "golang-nuts" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/golang-nuts/FAIN1fLonUc/unsubscribe.
> To unsubscribe from this group and all its topics, 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
> <https://groups.google.com/d/msgid/golang-nuts/66c0b083-fd53-4c96-8541-60a0fc23a581n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CANE8Ywjvov1dKQF4Bsq%2BvGad5eMYnxVHstoYguUGPR%3DLTz%3DsRA%40mail.gmail.com.

Reply via email to