digitallyinduced / ihp

🔥 The fastest way to build type safe web apps. IHP is a new batteries-included web framework optimized for longterm productivity and programmer happiness
https://ihp.digitallyinduced.com/
MIT License
4.89k stars 194 forks source link

instructed to run `devenv init` if user has devenv installed globally #1783

Open kodeFant opened 1 year ago

kodeFant commented 1 year ago

If the direnv shell isn't loaded and a developer runs devenv up or start, user will be instructed to run devenv init, which will put the project in a messy state with devenv.nix etc which shouldn't be in the project.

I think it can potentially happen a lot for newcomers curious about devenv.

Ideally, we should maybe have some measures to prevent this, but I'm not sure the best way to solve it.

Can we do a check if the direnv shell is activated on the start script in the boilerplate? Or should we just have it in stated in the docs somewhere?

Related discussion on Slack: https://ihpframework.slack.com/archives/C01DQE0F4F8/p1690493993423259

mpscholten commented 1 year ago

I've asked domen, maybe devenv can somehow detect that it's running in flake mode and then not print that message 👍