Repository navigation
build: autoload Python and Node deps from Makefile with direnv [skip ci] - #6968
Conversation
|
Please say what motivates this, thanks! Why would we want this, and what's the Makefile from? |
|
When I run I never run Until today, I had a custom script that handled this for me, it was essentially a wrapper around the The technique I want to introduce adds an optional So contributors will only need And it's optional, if there is no |
rfay
left a comment
There was a problem hiding this comment.
Thanks, didn't understand the context.
I use pipx install mkdocs I guess, that doesn't seem to break things?
|
I tried Does That's why I preferred python venv to be as close as possible to what is inside docs/mkdocs-pip-requirements. P.S. I remember using |
|
I guess you're right, and I don't know what I did most recently. I was just saying that I installed mkdocs (apparently) using pipx. I don't do so much with python that it matters a lot... |
The Issue
The Makefile suggests installing some tools globally, but it is better to install them in an isolated environment, accessible only within DDEV directory.
How This PR Solves The Issue
Adds a config file for
direnvtool, that will autoinstall everything needed.It is completely optional and not necessary, but I find it easy to use.
Manual Testing Instructions
where
~/workspace/ddev/.envrcis the path to this file.(Alternatively,
.envrcfile can be loaded withdirenv allow .)cdinto this directory, all required toolswill automatically be installed in .gotmp/env and sourced.
make clean, thencdout of and back into this directory.Example of use:
The following message can be disabled with
export DIRENV_LOG_FORMAT=Automated Testing Overview
Release/Deployment Notes