core: drop Metadata.path field

Isn't used anywhere and it is better to have
`Map StorePath (Metadata StorePath)`

See also https://github.com/haskell-nix/hnix-store/issues/147#issuecomment-1816414062
This commit is contained in:
Richard Marko 2023-11-18 18:57:17 +01:00
parent a187937be4
commit 82fc29771c

View File

@ -33,9 +33,7 @@ data StorePathTrust
-- | Metadata (typically about a 'StorePath')
-- This type corresponds to Nix-es `ValidPathInfo`
data Metadata a = Metadata
{ -- | The path this metadata is about
path :: !a
, -- | The path to the derivation file that built this path, if any
{ -- | The path to the derivation file that built this path, if any
-- and known.
deriverPath :: !(Maybe a)
, -- TODO should this be optional?