hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 377ad87a51e0ef3619af4fe1be6aeee14c215c0a
parent 292b0e26ec9253398f7289dcf096691f63de2d96
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Mon, 14 Sep 2020 10:22:24 +0200

Set PWD in environment when running the Node apps

E.g. PostCSS and Babel.

This is in line with what we do when running Go.

Diffstat:
Mcommon/hugo/hugo.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/hugo/hugo.go b/common/hugo/hugo.go
@@ -87,7 +87,7 @@ func GetExecEnviron(workDir string, cfg config.Provider, fs afero.Fs) []string {
 		nodepath = workDir + string(os.PathListSeparator) + np
 	}
 	config.SetEnvVars(&env, "NODE_PATH", nodepath)
-	config.SetEnvVars(&env, "HUGO_WORKDIR", workDir)
+	config.SetEnvVars(&env, "PWD", workDir)
 	config.SetEnvVars(&env, "HUGO_ENVIRONMENT", cfg.GetString("environment"))
 	fis, err := afero.ReadDir(fs, files.FolderJSConfig)
 	if err == nil {