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

Add support for flakes in subdirectories #2855

Closed
edolstra opened this issue Feb 13, 2019 · 1 comment
Closed

Add support for flakes in subdirectories #2855

edolstra opened this issue Feb 13, 2019 · 1 comment
Labels

Comments

@edolstra
Copy link
Member

Currently flake.nix has to live in the top-level directory of a repository. Thus, there can be only one flake per repository. We could add a flake path to flake references to allow subdirectories (e.g. github:my-org/my-project?dir=foo/bar).

Whether this is desirable is not entirely clear (we may want to be opinionated about flake structure). Apparently NPM doesn't support this either and they survived just fine without it.

@zimbatm
Copy link
Member

zimbatm commented Feb 14, 2019

Yarn has added a concept of "workspaces" which does something like that. In a big monorepo where there are multiple projects, each project gets it's package.json and the workspace is used to group them all.

https://yarnpkg.com/lang/en/docs/workspaces/

@CSVdB CSVdB self-assigned this Apr 10, 2019
@CSVdB CSVdB closed this as completed May 10, 2019
@grahamc grahamc transferred this issue from another repository May 16, 2019
@grahamc grahamc added the flakes label May 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants