Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pac tool on error must return non zero exit code. #1027

Open
Fabian-Schmidt opened this issue Sep 6, 2024 · 0 comments
Open

Pac tool on error must return non zero exit code. #1027

Fabian-Schmidt opened this issue Sep 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Fabian-Schmidt
Copy link

Fabian-Schmidt commented Sep 6, 2024

Describe the bug

I have an issue with my mapping file causing my pac solution unpack to crash.
But it returns no error code.

I am unsure what is my issue with the mapping file. BUT it was hidden and not early discovered because of this issue.

Unpacking Solution...
Reading mapping directives...
[...]
Mapping: C:\src\solution\pluginpackages\abc_abcPlugins\package\abc_abcPlugins.nupkg to
Microsoft PowerPlatform CLI
Version: 1.34.4+gbc3320d
Online documentation: https://aka.ms/PowerPlatformCLI
Feedback, Suggestions, Issues: https://github.com/microsoft/powerplatform-build-tools/discussions

Error: Value cannot be null.
Parameter name: key

PS C:\src> $LASTEXITCODE
0
PS C:\src> $?
True

To Reproduce

This specific mapping issue root cause is if you have multiple mappings and the pluginpackages mapping is not the first mapping.

Expected behavior

If ANY exception / error is occurring during pac tool the application return code must be non zero.

Desktop (please complete the following information):

  • OS: Windows 10
  • Version 10.0.19045.4780

Additional context
Add any other context about the problem here.

@Fabian-Schmidt Fabian-Schmidt added the bug Something isn't working label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant