-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
direnv not working in devcontainer #1106
Comments
|
This didn't work when I had it setup in Linux too, so it's not a dev container issue. From brew I understand you are on a Mac. I also found this: go-task/task#482 |
Funny how I was already subscribed to that issue 😂. Yeah I don't have a bunch of systems to test on so many with mac it just works? |
Actually come to think of it, maybe it is direnv setting that all up and it's not really needed in the taskfile? |
You mean we can set it in |
Installing direnv might be easy, the harder part might be getting it hooked into the zsh shell |
Fortunately it's done automatically according to docs:
|
maybe we need to remove the |
Whoops, sorry I edited my comment before your reply. I got it working, I'm now checking the PATH issue! |
Yeah, that did it.
Problem is, automatic hooking didn't work even though it's supposed to. I'll open an issue on the feature repo. In the meantime I think we can work on cleaning up Taskfile Of course,
|
I wonder do you think if we used bash instead of zsh direnv would work? |
It doesn't seem to work at all:
I gave it a try though, just to be sure:
I've opened an issue on the feature repo and waiting for input |
I have fixed this in the latest devcontainer, @giannoug I will close this issue. Will reopen if there's more issues. |
This is (probably) the last issue with dev containers, but I have no idea how to fix.
After opening a dev container, running any command that requires the venv to be activated (i.e. have packages in PATH) fails. For example:
How is that handled in the project? Is the venv activated in task files? Is the path manually set? For the time being I just
source .venv/bin/activate
before running any task.The text was updated successfully, but these errors were encountered: