Skip to content

Commit

Permalink
fix(build): ignore plugins dir when no plugins for build
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkinStars committed Oct 18, 2023
1 parent 731e8b3 commit 67d5e6f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/cli/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,12 @@ func copyUIFiles(b *buildingMaterial) (err error) {

// copy plugins dir
fmt.Printf("try to copy dir from %s to %s\n", pluginsDir, localUIPluginDir)

// if plugins dir not exist means no plugins
if !dir.CheckDirExist(pluginsDir) {
return nil
}

pluginsDirEntries, err := os.ReadDir(pluginsDir)
if err != nil {
return fmt.Errorf("failed to read plugins dir: %w", err)
Expand Down

0 comments on commit 67d5e6f

Please sign in to comment.