Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complete implementation of exportReferencesGraph #1134

Closed
domenkozar opened this issue Nov 17, 2016 · 12 comments
Closed

Complete implementation of exportReferencesGraph #1134

domenkozar opened this issue Nov 17, 2016 · 12 comments
Assignees
Milestone

Comments

@domenkozar
Copy link
Member

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

@copumpkin
Copy link
Member

It really hurts performance to use fixValidity 😦

@copumpkin
Copy link
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?

@domenkozar
Copy link
Member Author

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

@copumpkin
Copy link
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 😄

@domenkozar
Copy link
Member Author

domenkozar commented Jan 24, 2017

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

@domenkozar domenkozar added this to the perl-to-c++ milestone Jan 24, 2017
@copumpkin
Copy link
Member

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

@copumpkin
Copy link
Member

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

@copumpkin
Copy link
Member

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

@copumpkin
Copy link
Member

copumpkin commented Jan 26, 2017

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.

@edolstra
Copy link
Member

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

@copumpkin
Copy link
Member

Yeah, that'd probably be easier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@copumpkin @domenkozar @edolstra and others