Replies: 6 comments 10 replies
-
|
Glad to hear you're enjoying it! 😃 The workspace story has already come to our minds multiple times, we're heavy users of the Cargo workspaces, as our main library https://github.com/mamba-org/rattler is using it. We want to take what we can learn from that and apply it to pixi, This however is on our backlog, and some other features are having our priority right now. Not to discourage you of using pixi but I don't want to share unreachable deadlines kuchElonMuskkuch. A solution for your situation right now depends on the use of your nested projects.
I would like this discussion to stay open and welcoming to ideas and wishes for a "Workspace" implementation" 💡 |
Beta Was this translation helpful? Give feedback.
-
|
i've pushed this idea to the limit with conda https://github.com/pnnl/hydraconda. i had a venv for every "workspace" and deps b/w these workspaces. pixi would form a much better basis. |
Beta Was this translation helpful? Give feedback.
-
|
Would really love to see a way to have a project Then be able to build and run project |
Beta Was this translation helpful? Give feedback.
-
|
uv support workspace dependencies now. Here is a example [project]
name = "playground-monorepo"
version = "0.1.0"
description = "Add your description here"
requires-python = ">=3.13"
dependencies = [
"hello",
]
[tool.uv.sources]
hello = { workspace = true }
[tool.uv.workspace]
members = ["packages/*"] |
Beta Was this translation helpful? Give feedback.
-
|
Any updates on this? We would really like to see a Pixi implementation of a monorepo. |
Beta Was this translation helpful? Give feedback.
-
|
I feel like the solution would be to expand the "solve groups" concept to be able to refer to features from other pixi.toml files for the individual repos. See "solve-group" in https://pixi.sh/v0.56.0/workspace/multi_environment/#feature-environment-set-definitions Before pixi, I used micromamba and organized multiple repos around a common and shared environment. So, each repo would add their stuff to the common env. Of course, that didn't work well because of version conflicts and the lack of lockfiles in micromamba. So, joining a bunch of features from multiple pixi.toml into a single solve group would allow keeping everything globally consistent. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm really loving pixi (it's amazing!), especially for my projects that include multiple languages. A number of these are monorepos, and I wanted to seek some guidance on how best to use pixi in a monorepo setup.
I'm coming from the JS/node.js ecosystem, where I'm used to using tools like pnpm and workspaces, such that I can have a top-level config (
package.jsonandpnpm-workspace.yml) and lock file, with nested projects only needing their own config. Doing aninstallat the root of the monorepo recursively installs things, and using-rI can recursively run tasks throughout the monorepo.How would you suggest I use pixi in such cases? Currently what I'm doing is using pixi at the root to install global tooling (node, python, etc) and
pnpmfor my JS sub-projects. For the Python sub-projects, I've opted for anotherpixi.tomlandpixi.lockfile within the sub-project, which handles things like installingrequirements.txtas a task.Installing everything at the root seems wrong, but I feel like there must be a better solution than what I'm doing. Has anyone done this and can provide guidance?
Beta Was this translation helpful? Give feedback.
All reactions