Skip to content

(#868) publish option --skip-duplicate doesn't consider target platforms#873

Merged
joaomoreno merged 1 commit into
microsoft:mainfrom
drewbrokke:issue-868-duplicate-publish-target-platform
Jul 11, 2023
Merged

(#868) publish option --skip-duplicate doesn't consider target platforms#873
joaomoreno merged 1 commit into
microsoft:mainfrom
drewbrokke:issue-868-duplicate-publish-target-platform

Conversation

@drewbrokke

@drewbrokke drewbrokke commented Jun 21, 2023

Copy link
Copy Markdown
Contributor

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.

@mbehr1 mbehr1 left a comment

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
Contributor Author

Thanks all! 🥳

@joaomoreno

Copy link
Copy Markdown
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