Skip to content

Conversation

@drewbrokke
Copy link
Contributor

@drewbrokke drewbrokke commented Jun 21, 2023

Fixes #868

Problem:

When publishing multiple vsix packages with different target platforms using the --packagePath flag and the --skip-duplicate flag, only the first package is published. After that, all the others are considered duplicate versions and are not published.

Solution:

Always consider the target platform along with the version when the target is present in the publish options

I did not see any relevant test cases for this code, so please let me know if I missed it and I will update the PR.

Thanks!

FYI @mbehr1

If there is a target present in the options, then check it along with the
version. Otherwise just check the version.
Copy link

@mbehr1 mbehr1 left a comment

Choose a reason for hiding this comment

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

thx! Lgtm. Didn't test it yet but code looks good/makes sense.

@drewbrokke
Copy link
Contributor Author

Hi all, any updates on this one? This will be very helpful for our publishing workflow.

@joaomoreno joaomoreno self-assigned this Jul 11, 2023
@joaomoreno joaomoreno added this to the July 2023 milestone Jul 11, 2023
@joaomoreno joaomoreno enabled auto-merge (squash) July 11, 2023 13:58
@joaomoreno joaomoreno merged commit 8ef9b97 into microsoft:main Jul 11, 2023
@drewbrokke
Copy link
Contributor Author

Thanks all! 🥳

@joaomoreno
Copy link
Member

No... thank YOU @drewbrokke! 🍻

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.

publish option --skip-duplicate doesn't consider target platforms

4 participants