From dd5878ff4385db60a5af6501c247ed8f78be8428 Mon Sep 17 00:00:00 2001 From: Guillermo Kardolus Date: Wed, 31 Oct 2018 14:41:15 -0400 Subject: [PATCH] Fix RebuildLayer input directory [#161557168] Co-authored-by: An Yu --- npm/npm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npm/npm.go b/npm/npm.go index 81025fda..25e45f77 100644 --- a/npm/npm.go +++ b/npm/npm.go @@ -61,7 +61,7 @@ func (n *NPM) RebuildLayer(srcLayer, dstLayer string) error { srcModulesDir := filepath.Join(srcLayer, "node_modules") dstModulesDir := filepath.Join(dstLayer, "node_modules") - if err := n.Runner.Run(dstLayer, "rebuild"); err != nil { + if err := n.Runner.Run(srcLayer, "rebuild"); err != nil { return err }