diff --git a/mage_helpers/build.go b/mage_helpers/build.go index 6f9532de09171128198cdcf18c9f55565705cdbd..f6f85dc7baa17d97b68bd00fa232afa5590fb91d 100644 --- a/mage_helpers/build.go +++ b/mage_helpers/build.go @@ -59,9 +59,13 @@ func Build(dir string, module string, isDebug bool) error { } // Copy shared files - err = copyFilesToBuildDir(currentDir+"/core/shared", outputDir) - if err != nil { - return err + sharedDir := currentDir+"/core/shared" + _, err = os.Stat(sharedDir) + if err == nil { + err = copyFilesToBuildDir(sharedDir, outputDir) + if err != nil { + return err + } } if isDebug {