Skip to content

Commit

Permalink
fix: admin-build invoke without parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Sep 25, 2023
1 parent 34f10c1 commit d59ae1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/project/project_admin_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ var projectAdminBuildCmd = &cobra.Command{

logging.FromContext(cmd.Context()).Infof("Looking for extensions to build assets in project")

sources := extension.FindAssetSourcesOfProject(cmd.Context(), args[0])
constraint, err := extension.GetShopwareProjectConstraint(args[0])
sources := extension.FindAssetSourcesOfProject(cmd.Context(), projectRoot)
constraint, err := extension.GetShopwareProjectConstraint(projectRoot)
if err != nil {
return err
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/project/project_storefront_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ var projectStorefrontBuildCmd = &cobra.Command{

logging.FromContext(cmd.Context()).Infof("Looking for extensions to build assets in project")

sources := extension.FindAssetSourcesOfProject(cmd.Context(), args[0])
constraint, err := extension.GetShopwareProjectConstraint(args[0])
sources := extension.FindAssetSourcesOfProject(cmd.Context(), projectRoot)
constraint, err := extension.GetShopwareProjectConstraint(projectRoot)
if err != nil {
return err
}
Expand Down

0 comments on commit d59ae1b

Please sign in to comment.