Open ElrohirGT opened 7 months ago
Duplicate of #1172.
The correct name for the package would be ci-devenv-up
, but the devenv up
script is currently broken for multiple shells. See https://github.com/cachix/devenv/issues/1172#issuecomment-2082475080.
What's the motivation to have two shells?
Duplicate of #1172. The correct name for the package would be ci-devenv-up, but the devenv up script is currently broken for multiple shells. See #1172 (comment).
Ohh ok, got it. Thank you!
What's the motivation to have two shells?
My main motivation is trying to run CI tests without degrading the dev experience. For example I found that the TUI of process-compose breaks my CI integration tests workflow because I try to run it in a background process so I would like for my CI environment to run without a TUI but my local development environment to have a TUI.
Since this changes configuration in the process-compose
property I thought about defining two shells, one for CI and one for development. They share a lot of configuration but I don't need many packages or processes for the CI environment relative to the dev environment.
By the way, when I tried setting tui = false
as a boolean the process-compose command generated failed, I don't have my computer at the moment so I can't share more info but to fix it I had to make it a string instead. Could be great to add it to the docs!
when I tried setting tui = false as a boolean the process-compose command generated failed,
Will be fixed as part of https://github.com/cachix/devenv/pull/1161.
Hi! For context I'm using devenv with flakes, here's an MRE of my situation:
How would I go about starting the services defined in the
ci
shell? I tried running:But this still runs only the postgres service thats defined in the default shell.
I also tried running:
But this fails with: