On Tue, Apr 28, 2026 at 10:30 PM Juan <[email protected]> wrote: > go:embed complication: > > syft uses go:embed extensively. dh-golang operates in GOPATH mode and > creates symlinks, but go:embed rejects symlinks. This is why the > current packaging uses direct go build with -mod=vendor instead of > dh-golang. Is there an established workaround within the team's workflow?
This is not the right assumption. dh-golang doesn't create symlinks for the source package, it copies files to builddir. You should add all embedded files to DH_GOLANG_INSTALL_EXTRA. Sure dh-golang should be smarter to copy all files listed in go:embed, patches are welcome. -- Shengjing Zhu
