* Packaging a go module with //go:embed
@ 2022-06-07 15:27 Reza Housseini
0 siblings, 0 replies; only message in thread
From: Reza Housseini @ 2022-06-07 15:27 UTC (permalink / raw)
To: help-guix
[-- Attachment #1.1.1: Type: text/plain, Size: 831 bytes --]
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
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 15557 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-07 15:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-07 15:27 Packaging a go module with //go:embed Reza Housseini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).