all repos — homestead @ 14cbcf6ea913824cf72531b17f2cedd5ca2a646d

Code for my website

cmd/build: remove unnecessary chdir

Alan Pearce
commit

14cbcf6ea913824cf72531b17f2cedd5ca2a646d

parent

06ba584d49a286b8abef95496bd43788cf8acb97

1 file changed, 0 insertions(+), 6 deletions(-)

jump to
M cmd/build/main.gocmd/build/main.go
@@ -24,12 +24,6 @@ }
log := log.Configure(!builderOptions.Development) log.Debug("starting build process") - if builderOptions.Source != "." { - err := os.Chdir(builderOptions.Source) - if err != nil { - log.Panic("could not change to source directory") - } - } cfg, err := config.GetConfig(builderOptions.Source, log) if err != nil { log.Error("could not read config", "error", err)