xhd2015 / xgo

All-in-one go testing library
MIT License
289 stars 16 forks source link

reduce impact on build cache when xgo upgrades #216

Closed xhd2015 closed 1 week ago

xhd2015 commented 1 week ago

Currently xgo identifies its version by 2 constants: VERSION(string) and REVISION(number).

It will invalidate xgo's cache of older version, and each time it does so, it causes initial build time cost much longer.

However, now xgo's core becomes much more stable, it's unnecessary to invalidate cache when the core does not change at all.

Hence here proposing new 2 constants: CORE_VERSION and CORE_REVISION, it replaces VERSION and REVISION in these 2 cases:

xhd2015 commented 1 week ago

Amend the revision command: xgo revision --core will prints the core revision.