Le Thu, May 25, 2023 at 01:45:54AM +0100, Stuart Henderson a écrit : > On 2023/05/23 19:26, Martin Reindl wrote: > > + # generated by 'telegraf config' > > + ${INSTALL_DATA} ${FILESDIR}/telegraf.conf \ > > ${PREFIX}/share/examples/telegraf/ > > would it make sense to use the newly built binary to generate this > instead? I think the copy in FILESDIR is likely to get out of sync after > updates.
that was also my idea, and .. that would also exercise the binary that was just built, which can be a nice canary for when go binaries are broken by some other changes in src. so maybe this in do-install: ${PREFIX}/bin/telegraf config > ${PREFIX}/share/examples/telegraf/telegraf.conf