CD when using Golang's os / exec package

--For example, when you want to execute Makefile in a directory two levels higher


os.Chdir("./../../")
cmd := exec.Command("make", "ENV_FILE=.env", "DOMAIN_NAME=vamdemic")

Recommended Posts

CD when using Golang's os / exec package
Summary when using Fabric
Precautions when using Chainer