Skip to content

Complete implementation of exportReferencesGraph #1134

Closed

Description

@domenkozar

Currently exportReferencesGraph doesn't contain all information needed by nix-store --load-db in order to register paths as valid.

We use following hack, which is IO intense when generating a disk image:
https://github.com/NixOS/nixpkgs/blob/master/nixos/lib/make-disk-image.nix#L74-L76

What's the scope of this to be finished? @edolstra

Activity

  1. self-assigned this
    on Dec 6, 2016
  2. copumpkin commented on Jan 16, 2017

    @copumpkin
    Member

    It really hurts performance to use fixValidity 😦

  3. copumpkin commented on Jan 17, 2017

    @copumpkin
    Member

    @edolstra not fully understanding what's going on in the relevant code, why is this not as simple as passing true to the makeValidityRegistration call here?

  4. domenkozar commented on Jan 17, 2017

    @domenkozar
    MemberAuthor

    Yeah I thought so too, but I fear @edolstra would have done if it was really that simple :)

  5. copumpkin commented on Jan 17, 2017

    @copumpkin
    Member

    @domenkozar yeah, just figured it might be easier for @edolstra to explain what needs to be done and have another interested party do the actual work 😄

  6. domenkozar commented on Jan 24, 2017

    @domenkozar
    MemberAuthor

    @copumpkin the good new is, we need this for perl rework.

  7. added this to the perl-to-c++ milestone on Jan 24, 2017
  8. copumpkin commented on Jan 26, 2017

    @copumpkin
    Member

    ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ @edolstra

  9. copumpkin commented on Jan 26, 2017

    @copumpkin
    Member

    If it's JSON now, does that mean the perl thing we use for exportReferenceGraph needs to be amended to support it?

  10. copumpkin commented on Jan 26, 2017

    @copumpkin
    Member

    Oh I see now, you write both formats, cool.

  11. copumpkin commented on Jan 26, 2017

    @copumpkin
    Member

    One possible gotcha: lots of the processors of exportRereferencesGraph blindly feed a globbed closure-* into the perl program, which would probably pick up the JSON form you produce with that commit.

  12. edolstra commented on Jan 27, 2017

    @edolstra
    Member

    Good point, maybe they should be renamed to .<foo>.json.

  13. copumpkin commented on Jan 27, 2017

    @copumpkin
    Member

    Yeah, that'd probably be easier

  14. added a commit that references this issue on Mar 8, 2026
    6182a5e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions