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

doc: hyphen range constraint without whitespace #216

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

johnnychen94
Copy link
Contributor

I was a bit surprised that the following doesn't work as expected at first sight:

package main

import (
	"github.com/Masterminds/semver/v3"
)

func main() {
	c, err := semver.NewConstraint("0.7.2-0.8.0")
	if err != nil {
		panic(err)
	}
	v, err := semver.NewVersion("0.7.25")
	if err != nil {
		panic(err)
	}
	println(c.Check(v))
}

then I realized that we need whitespace between:

-	c, err := semver.NewConstraint("0.7.2-0.8.0")
+ 	c, err := semver.NewConstraint("0.7.2 - 0.8.0")

@mattfarina mattfarina merged commit f4a4d83 into Masterminds:master Jun 4, 2024
@johnnychen94 johnnychen94 deleted the patch-1 branch June 5, 2024 03:59
MrAlias referenced this pull request in open-telemetry/opentelemetry-go Aug 28, 2024
…5750)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/Masterminds/semver/v3](https://github.com/Masterminds/semver)
| `v3.2.1` -> `v3.3.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fMasterminds%2fsemver%2fv3/v3.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fMasterminds%2fsemver%2fv3/v3.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fMasterminds%2fsemver%2fv3/v3.2.1/v3.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fMasterminds%2fsemver%2fv3/v3.2.1/v3.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>Masterminds/semver (github.com/Masterminds/semver/v3)</summary>

###
[`v3.3.0`](https://github.com/Masterminds/semver/releases/tag/v3.3.0)

[Compare
Source](https://github.com/Masterminds/semver/compare/v3.2.1...v3.3.0)

#### What's Changed

- Fix: bad package in README by
[@&#8203;sdelicata](https://github.com/sdelicata) in
[https://github.com/Masterminds/semver/pull/226](https://github.com/Masterminds/semver/pull/226)
- Updating the GitHub Actions and versions of Go used by
[@&#8203;mattfarina](https://github.com/mattfarina) in
[https://github.com/Masterminds/semver/pull/229](https://github.com/Masterminds/semver/pull/229)
- Fix spelling in README by
[@&#8203;robinschneider](https://github.com/robinschneider) in
[https://github.com/Masterminds/semver/pull/222](https://github.com/Masterminds/semver/pull/222)
- Adding go build cache to fuzz output by
[@&#8203;mattfarina](https://github.com/mattfarina) in
[https://github.com/Masterminds/semver/pull/232](https://github.com/Masterminds/semver/pull/232)
- Add caching to fuzz testing by
[@&#8203;mattfarina](https://github.com/mattfarina) in
[https://github.com/Masterminds/semver/pull/234](https://github.com/Masterminds/semver/pull/234)
- updating github actions by
[@&#8203;mattfarina](https://github.com/mattfarina) in
[https://github.com/Masterminds/semver/pull/235](https://github.com/Masterminds/semver/pull/235)
- feat: nil version equality by
[@&#8203;KnutZuidema](https://github.com/KnutZuidema) in
[https://github.com/Masterminds/semver/pull/213](https://github.com/Masterminds/semver/pull/213)
- add >= and <= by [@&#8203;grosser](https://github.com/grosser) in
[https://github.com/Masterminds/semver/pull/238](https://github.com/Masterminds/semver/pull/238)
- doc: hyphen range constraint without whitespace by
[@&#8203;johnnychen94](https://github.com/johnnychen94) in
[https://github.com/Masterminds/semver/pull/216](https://github.com/Masterminds/semver/pull/216)
- Removing reference to vert by
[@&#8203;mattfarina](https://github.com/mattfarina) in
[https://github.com/Masterminds/semver/pull/245](https://github.com/Masterminds/semver/pull/245)
- simplify StrictNewVersion by
[@&#8203;grosser](https://github.com/grosser) in
[https://github.com/Masterminds/semver/pull/241](https://github.com/Masterminds/semver/pull/241)
- Updating the testing version of Go used by
[@&#8203;mattfarina](https://github.com/mattfarina) in
[https://github.com/Masterminds/semver/pull/246](https://github.com/Masterminds/semver/pull/246)
- bumping min version in go.mod based on what's tested by
[@&#8203;mattfarina](https://github.com/mattfarina) in
[https://github.com/Masterminds/semver/pull/248](https://github.com/Masterminds/semver/pull/248)
- Updating changelog for 3.3.0 by
[@&#8203;mattfarina](https://github.com/mattfarina) in
[https://github.com/Masterminds/semver/pull/249](https://github.com/Masterminds/semver/pull/249)

#### New Contributors

- [@&#8203;sdelicata](https://github.com/sdelicata) made their first
contribution in
[https://github.com/Masterminds/semver/pull/226](https://github.com/Masterminds/semver/pull/226)
- [@&#8203;robinschneider](https://github.com/robinschneider) made
their first contribution in
[https://github.com/Masterminds/semver/pull/222](https://github.com/Masterminds/semver/pull/222)
- [@&#8203;KnutZuidema](https://github.com/KnutZuidema) made their
first contribution in
[https://github.com/Masterminds/semver/pull/213](https://github.com/Masterminds/semver/pull/213)
- [@&#8203;grosser](https://github.com/grosser) made their first
contribution in
[https://github.com/Masterminds/semver/pull/238](https://github.com/Masterminds/semver/pull/238)
- [@&#8203;johnnychen94](https://github.com/johnnychen94) made their
first contribution in
[https://github.com/Masterminds/semver/pull/216](https://github.com/Masterminds/semver/pull/216)

**Full Changelog**:
Masterminds/semver@v3.2.1...v3.3.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/open-telemetry/opentelemetry-go).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguNTYuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiU2tpcCBDaGFuZ2Vsb2ciLCJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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