Skip to content

fix: Sub-bundles not handled in project ci#960

Closed
Philipp Schuch (Phil23) wants to merge 1 commit intomainfrom
fix/sub-bundles-detection
Closed

fix: Sub-bundles not handled in project ci#960
Philipp Schuch (Phil23) wants to merge 1 commit intomainfrom
fix/sub-bundles-detection

Conversation

@Phil23
Copy link
Copy Markdown

Description

Other than the project admin-build command, the project ci does not consider the bundle dump, which leads to sub-bundles from plugins not being discovered. Corresponding assets, like JS files, are therefore not compiled.

This PR adds DumpAndLoadAssetSourcesOfProject to the project ci command to implement the same behavior as the admin-build command.

Comment thread cmd/project/ci.go
lookingForExtensionsSection := ci.Default.Section(cmd.Context(), "Looking for extensions")

sources := extension.FindAssetSourcesOfProject(cmd.Context(), args[0], shopCfg)
sources, err := extension.DumpAndLoadAssetSourcesOfProject(cmd.Context(), args[0], shopCfg)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's on purpose so, as Shopware is in a unstable state in CI as we don't have a MySQL server and plugins often break than. Is maybe just a .shopware-extension.yaml missing? See commercial plugin

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good hint. That seems to be the issue. Closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants