Skip to content

fix: fail build when packed solution is missing root components - #102

Open
zekelinAlex wants to merge 1 commit into
TALXIS:masterfrom
zekelinAlex:users/alexander.zekelin/fail-build-on-packager-errors-issue-47
Open

fix: fail build when packed solution is missing root components#102
zekelinAlex wants to merge 1 commit into
TALXIS:masterfrom
zekelinAlex:users/alexander.zekelin/fail-build-on-packager-errors-issue-47

Conversation

@zekelinAlex

Copy link
Copy Markdown
Collaborator

The packager only warns when Solution.xml declares root components that have no
source files, so the build stayed green and packed an incomplete zip. That's
how the missing SdkMessageProcessingSteps from #47 slipped through to import.

InvokeSolutionPackager now checks the SolutionPackagerResult from
Metadata.Packaging: packager errors and missing root components become MSBuild
errors and the incomplete zip gets deleted so nothing downstream picks it up.
Other packager warnings now surface as MSBuild warnings instead of vanishing.

Depends on TALXIS.Platform.Metadata.Packaging with SolutionPackagerResult
(TALXIS/platform-metadata#73); bump the package pin here once it's published.

Closes #47.

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.

Build should validate solution root components and fail if any are missing

1 participant