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 solution sync does not honour packagetype in solution.xml #913

Open
filcole opened this issue Apr 19, 2024 · 0 comments
Open

pac solution sync does not honour packagetype in solution.xml #913

filcole opened this issue Apr 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@filcole
Copy link

filcole commented Apr 19, 2024

If I clone a solution with unmanaged package type when I subsequently perform a solution sync I'd expect only the unmanaged solution to be cloned and the package type to stay as unmanaged. This does not happen, the unmanaged and managed solutions are exported and the solution is unpacked in 'both' mode.

Similarly, if I initially cloned in managed mode I'd expect that to be remembered and honoured by any future pac solution sync.

To reproduce:

  1. pac solution clone --packagetype unmanaged --solution myAmazingThing
  2. Notice that <managed>0</managed> is in Other\Solution.xml indicating solution is of the unmanaged export style
  3. Now sync pac solution sync

Expected result

  1. A single unmanaged export is performed
  2. Solution.xml should be unchanged, and still have <managed>0</managed>

Actual result

  1. Two solution exports are performed (unmanaged and managed)
  2. Solution.xml is changed and now in 'both' mode, i.e. <managed>2</managed>

Workaround

Remember to type pac solution sync --packagetype unmanaged with the correct package type (as appropriate)

@filcole filcole changed the title pac solution sync does not honour currently packagetype in solution.xml pac solution sync does not honour packagetype in solution.xml Apr 19, 2024
@marcelbf marcelbf added the bug Something isn't working label Apr 19, 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

2 participants