unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Reza Housseini <reza.housseini@gmail.com>
To: help-guix@gnu.org
Subject: Packaging a go module with //go:embed
Date: Tue, 7 Jun 2022 17:27:47 +0200	[thread overview]
Message-ID: <37379ebf-61a4-6e0a-021d-587b37a30b68@gmail.com> (raw)


[-- 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 --]

                 reply	other threads:[~2022-06-07 15:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=37379ebf-61a4-6e0a-021d-587b37a30b68@gmail.com \
    --to=reza.housseini@gmail.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).