Open AndreasBackx opened 6 years ago
Hi, i'll create a sample with packr as soon as possible in order to test this
same with test
, only run tests on startup
@Asoseil you can use this project of mine to test it. It was only a proof-of-concept project.
This seems to be unrelated to packr, it does the same thing for me with a simple script I wrote as well. It detects the change and rebuilds, but only runs go generate
on startup.
same happening with test here
The same problem happens with test/vet/fmt as well. Also, this affect 2.0.2 release and master while 2.0.1 is okay.
I've got the following file that runs packr via
go generate
. But it only seems to rungo generate
when initially runningrealize start
.The following is my
.realize.yaml
:Output:
Initially it starts out without a
main-packr.go
file which is initially generated bygo generate
which triggers a second install. But after that it is not regenerated indicating thatgo generate
is only called on startup.