edolstra / flake-compat

MIT License
254 stars 71 forks source link

sourceInfo does not have revCount with flake-compat, differing from getFlake #43

Closed charles-dyfis-net closed 2 days ago

charles-dyfis-net commented 2 years ago

Using Nix 2.8.1, a flake from git has the attributes rev, shortRev, revCount, lastModified and lastModifiedDate all under flake.sourceInfo.

However, with flake-compat, flake.sourceInfo has rev, shortRev, lastModified and lastModifiedDate, but not revCount directly under flake.sourceInfo.

revCount is available under flake.sourceInfo.outPath in this scenario.