Skip to content

Commit

Permalink
Fix RebuildLayer input directory
Browse files Browse the repository at this point in the history
[#161557168]

Co-authored-by: An Yu <[email protected]>
  • Loading branch information
kardolus and anyu committed Oct 31, 2018
1 parent 174cce3 commit dd5878f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion npm/npm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit dd5878f

Please sign in to comment.