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

Fix circular dependency issues (fix #14) #15

Merged
merged 2 commits into from Jan 8, 2020

Conversation

notgne2
Copy link
Member

@notgne2 notgne2 commented Jan 8, 2020

This is my attempt at resolving some issues with circular dependencies I experienced. I don't really see this PR as being perfect as I have very little idea of what I even did to resolve the issues, and honestly never figured out how the constituent system even worked.

One of the things I had to do was limit the name length of packages which is discomforting for a few reasons, but I don't know a better way to deal with.

I tweaked the constituent system until it looked "good" in a REPL (showing showing the previously missing dependencies under constituents, without erroring with infinite recursion), then I updated some of the scripts to handle namespaced packages properly, as it used to have issues linking multiple packages under the same namespace to the same Nix package.

This is probably better as a reference than an actual PR unless it looks all good to you.

I don't know how to test the results of this for accuracy well, but it was able to install Webpack and a bunch of my other dependencies, and work correctly (build system for an Elm project).

@adisbladis adisbladis merged commit b7cb9d9 into nix-community:master Jan 8, 2020
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

Successfully merging this pull request may close these issues.

None yet

2 participants