Re: Understanding the internal behavior of DH_GOLANG_GO_GENERATE

2020-01-01 Thread Tong Sun
On Tue, Dec 31, 2019 at 9:31 PM Felix Lechner wrote: > > Hi Tong, > > On Tue, Dec 31, 2019 at 4:11 PM Tong Sun > wrote: > > > > sh: 0: Can't open ffcvt_cli.sh > > The file is missing from the Go workspace in BUILDDIR. You can use one > of these statements in d/rules to copy the files: > > exp

Re: Understanding the internal behavior of DH_GOLANG_GO_GENERATE

2019-12-31 Thread Dmitry Smirnov
On Wednesday, 1 January 2020 11:11:14 AM AEDT Tong Sun wrote: > My ffcvt_cli.sh resides right under src/github.com/suntong/ffcvt. > How can I make change to my setting so that it works for both manual > run and Debian build? Debian build can be fixed by adding "ffcvt_cli.sh" to export DH_GOLA

Re: Understanding the internal behavior of DH_GOLANG_GO_GENERATE

2019-12-31 Thread Felix Lechner
Hi Tong, On Tue, Dec 31, 2019 at 4:11 PM Tong Sun wrote: > > sh: 0: Can't open ffcvt_cli.sh The file is missing from the Go workspace in BUILDDIR. You can use one of these statements in d/rules to copy the files: export DH_GOLANG_INSTALL_EXTRA := ffcvt_cli.sh ffcvt_cli.yaml export DH_GO

Understanding the internal behavior of DH_GOLANG_GO_GENERATE

2019-12-31 Thread Tong Sun
Hi, When turning on DH_GOLANG_GO_GENERATE, my build fail. Here is what happened: This is my `go:generate`: grep go:generate *.go ffcvt.go://go:generate sh -x ffcvt_cli.sh It runs fine when I invoke it manually: $ go generate -x sh -x ffcvt_cli.sh + templateFile=... When turning on DH_GOLANG_G