tweag / nixpkgs-graph-explorer

Explore the nixpkgs dependency graph
MIT License
15 stars 0 forks source link

The name of outputPath has values other than OUT, DEV, and LIB #67

Closed zz1874 closed 1 year ago

zz1874 commented 1 year ago

In the JSON schema we created, we only include three kinds of outputPathName:

    OUT = "out"
    LIB = "lib"
    DEV = "dev"

However, there are 259 outputPathNames in the data we extracted from nix (got from the function get_output_names in etl/etl.py). It will not work out when we try to add a package with outputPathAll = {"doc":"/nix/store/a"}. Should we ignore the outputPath with unrecognized outputPathName or we create another name called OTHERS or so? Any ideas? @GuillaumeDesforges @dorranh

GuillaumeDesforges commented 1 year ago

Nicely spotted.

I'd go for a plain str for the outputPath name since there are so many options.

zz1874 commented 1 year ago

fixed by #75