Skip to content

Commit

Permalink
fix: correct logic for skipping extensions in plugin JSON filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Feb 17, 2025
1 parent 61ec449 commit 1058733
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/project/platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ func filterAndWritePluginJson(cmd *cobra.Command, projectRoot string, shopCfg *s

if onlyExtensions != "" {
cfgs = cfgs.Only(strings.Split(onlyExtensions, ","))
} else if skipExtensions != "" {
}

if skipExtensions != "" {
cfgs = cfgs.Not(strings.Split(skipExtensions, ","))
} else {
logging.FromContext(cmd.Context()).Infof("Excluding extensions based on project config: %s", strings.Join(shopCfg.Build.ExcludeExtensions, ", "))
Expand Down

0 comments on commit 1058733

Please sign in to comment.