File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package trellis
33import (
44 "errors"
55 "fmt"
6+ "github.com/fatih/color"
67 "gopkg.in/ini.v1"
78 "gopkg.in/yaml.v2"
89 "io/ioutil"
@@ -105,6 +106,18 @@ func (t *Trellis) LoadProject() error {
105106 if os .Getenv ("TRELLIS_VENV" ) != "false" {
106107 if t .Virtualenv .Initialized () {
107108 t .Virtualenv .Activate ()
109+ } else {
110+ color .Yellow (`
111+ WARNING: no virtualenv found for this project. Trellis may not work as expected.
112+ To ensure you have the required dependencies, initialize the project with the following command:
113+
114+ $ trellis init
115+
116+ ` )
117+
118+ color .Yellow (`To disable this automated check, set the TRELLIS_VENV environment variable to 'false': export TRELLIS_VENV=false
119+
120+ ` )
108121 }
109122 }
110123
You can’t perform that action at this time.
0 commit comments