unmtime: Restore mtimes for olden build systems

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

Many build systems (e.g: make, cabal) use mtimes to decide whether to rebuild things.

This is very unfortunate in many cases, when mtimes change but content does not.

For example, "git pull --rebase" re-applies all local commits on top of the fresh upstream branch. This touches all local files mtimes even though they mostly end up the same.

unmtime is a utility that records the content hashes and mtimes of all files in .db/files.json (while ignoring files listed in db/blacklist.json). When it detects an mtime changed but the content hash did not, it restores the old mtime.

Running unmtime prior to running "cabal" or "make" can save lots of unneeded rebuilds.

Sending mtime back could confuse build systems that compare mtimes via Ord, and not Eq. So use with care.

Properties

Versions 0.1.0.0
Change log CHANGELOG.md
Dependencies aeson (>=1.4.4.0), aeson-pretty (>=0.8.7), async (>=2.2.2), base (>=4.12.0.0 && <4.13), bytestring (>=0.10.8.2), containers (>=0.6.0.1), cryptohash-sha256 (>=0.11.101.0), directory (>=1.3.3.0), filepath (>=1.4.2.1), hexstring (>=0.11.1), lens (>=4.18), pathwalk (>=0.3.1.2), text (>=1.2.3.1), time (>=1.8.0.2) [details]
License BSD-3-Clause
Author Eyal Lotem
Maintainer eyal.lotem@gmail.com
Category Development
Source repo head: git clone https://github.com/Peaker/unmtime.git
Uploaded by EyalLotem at 2019-11-27T22:56:11Z

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees