I always have a build script to wrap my tupfile. There are often various tasks that are not strictly "generate outputs from inputs" that go into building.
Since I already have this script, I simply put the VCS revision into an environment variable, and then the Tupfile can export that when needed. This might not count as "non-hacky" but it works for me. On Friday, March 15, 2019 at 11:38:08 AM UTC-7, Julian Stecklina wrote: > > Hello, > > I'm trying to include a project's current Git version into the binary on > build time. This problem has come up before and so far I'm not aware of > any non-hacky solution to do this. See previous discussions and my > unsuccessful attempt at asking this on Stackoverflow: > > - > https://groups.google.com/forum/#!msg/tup-users/e_1ynmm1GA8/BrbQ8a8Ul80J;context-place=topic/tup-users/TwaoCaOn_S8 > > - > https://stackoverflow.com/questions/45426455/git-commit-sha-as-part-of-tup-built-binary/55187029#55187029 > > Since the original discussion is already several years old, has anyone > found a better solution since then? > > Thanks, > Julian > > -- -- tup-users mailing list email: [email protected] unsubscribe: [email protected] options: http://groups.google.com/group/tup-users?hl=en --- You received this message because you are subscribed to the Google Groups "tup-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
