commercialhaskell / stack

The Haskell Tool Stack
http://haskellstack.org
BSD 3-Clause "New" or "Revised" License
3.95k stars 842 forks source link

Fix #6551 Use action `getLatestApplicableVersionAndRev` only when needed #6552

Closed mpilgrem closed 2 months ago

mpilgrem commented 2 months ago

Please also shortly describe how you tested your change. Bonus points for added tests! Relying on CI.

wraithm commented 2 months ago

@mpilgrem I confirmed that this gives a ~7-8 s no-op build time on our repo! This does indeed fix a solid chunk of #6551. Thank you! :) There might be something else that is accounting for that additional 7-8 s that stack-2.7.5 isn't doing (which usually takes <2 s).