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

Adding --latest-only option #15

Merged
merged 2 commits into from
Sep 20, 2019
Merged

Conversation

archxor
Copy link
Contributor

@archxor archxor commented Sep 20, 2019

Use case:

Our build pipeline places packages in folders by name/version number. Because of this, older package versions are retained in the same folder path as older versions.
Adding --latest-version option to only add the highest version number of packages that share the same ID to the feed.

Also updated some missing items from the README.

By default, any duplicate packages that are found will be processed, resulting in multiple versions of the same package in the feed. In case you have a build process that retains older versions of VSIX packages, this option can be used to ensure only the latest version of packages with the same ID end up in the feed.
Removing private method and switching to use a one-line LINQ statement.
It's probably slightly less efficient, but I think the simpler code outweighs the minor performance hit.
@madskristensen madskristensen merged commit d30d58d into madskristensen:master Sep 20, 2019
@madskristensen
Copy link
Owner

Awesome. Thanks!

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.

2 participants