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

Support pre-release marking in Bundles #43

Open
mwatts15 opened this issue Jan 3, 2022 · 0 comments
Open

Support pre-release marking in Bundles #43

mwatts15 opened this issue Jan 3, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@mwatts15
Copy link
Contributor

mwatts15 commented Jan 3, 2022

In creating Bundles, it can happen that a publisher wants to publish a "pre-release" Bundle which, although available for wide distribution, may not be considered by the publisher to be the long-term version recommended for all consumers of the bundle. We have a concept of a "latest" Bundle mediated by Bundle Loaders that support querying for Bundle versions. We should be able to specify "latest non-pre-release version" so to exclude pre-releases when we want the latest version for development against a latest stable baseline without regard to which version(s) in particular are the latest. (Actual "production" references should use fixed version numbers for all Bundles, so this issue would not be relevant to such use cases.)

Although it is possible to limit pre-releases to separate Remotes from full releases, it may be impractical for a given publisher to maintain the separate remote. Another alternative, of using a different name / ID for the pre-release Bundle versions is less desirable for two reasons: 1) it makes the relationship between the pre-release Bundles and the full release Bundles less visible since the bundles wouldn't be seen in the same series 2) users of the bundle would have to update all references to the name in order to test properly compared to not specifying the bundle version at all until reaching the release preparation phase.

Note that Bundle version numbers are just positive integers: we don't have dotted version numbers or pre-release markings like in Python (e.g., ".dev") or Maven ("-SNAPSHOT"). Instead we add another field to the Bundle manifest that Bundle storage can recognize and expose. Fetcher, the owm bundle fetch command, Bundle all need to adjust to support requesting exclusion of pre-releases.

@mwatts15 mwatts15 added the enhancement New feature or request label Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant