When investigating an issue with the latest Folly cbdep build, it was observed that changing manifest.cmake to a different folly version did not cause CBDownloadDeps et al to extract the newer version - it left the previous contents present.
For example, starting with a manifest.cmake containing VERSION v2022.05.23.00-couchbase-cb6:
Then changing back to VERSION v2022.05.23.00-couchbase-cb4, and re-running cmake shows the following output:
... and the contents of build/tlm/deps/folly.exploded is unchanged.
Poking into CBDownloadDeps, it appears that the function DECLARE_DEP assumes that only one hyphen will be present in the version string when extracting the build number. However this is not the case with folly (and prometheus-cpp), and hence the actual build number ends up getting ignored: