[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Packaging a go module with //go:embed
From: |
Reza Housseini |
Subject: |
Packaging a go module with //go:embed |
Date: |
Tue, 7 Jun 2022 17:27:47 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 |
Hi Guixers
I'm trying to package chroma [1] here [2]. Inside the source the
`//go:embed` preprocessor is used which does not support symbolic links.
But all source code is symbolicly linked into the build directory,
therefore the build is failing at this point.
How can I copy all files from directory [3] instead of symbolicly
linking them? I already tried replacing the symbolic link with a
canonical path, but `//go:embed` expects all files to be in the source
directory, so copy is the only option.
Thanks for any help.
Cheers Reza
[1] https://github.com/alecthomas/chroma
[2] https://pastebin.com/NwaxfhJS
[3] https://github.com/alecthomas/chroma/tree/master/lexers/embedded
--
Reza Housseini
This message is signed with my GnuPG key:
C0F3 0812 9AF2 80F4 0830 C2C1 C375 C6AF 0512 5C52
OpenPGP_0xC375C6AF05125C52.asc
Description: OpenPGP public key
OpenPGP_signature
Description: OpenPGP digital signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Packaging a go module with //go:embed,
Reza Housseini <=