Masterminds / Masterminds/semver
Filter prereleases
Open
Nobody has claimed this yet.
question
- Dominant language
- Go
- Stars
- 1.4k
- Forks
- 168
- PR merge metrics
- No merged PRs in 30d
Description
Hi. Is there a way how to filter prereleases? Assuming the below versions (ordered):
1.0.0-beta.2
1.0.0-beta.1
1.0.0-alpha.2
1.0.0-alpha.1
Is it possible to select only the alpha versions, and ignore the betas?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the Go package's existing version-selection and constraint behavior, then reproduce the alpha and beta versions from the issue. Determine how a caller could select only alpha prereleases while excluding betas; done means the behavior is exposed clearly and covered by a regression test for the shown versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100