1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-07-17 01:12:45 +02:00
Files
renovate[bot] 20cd7f871f fix(deps): update module github.com/masterminds/semver/v3 to v3.4.0 (#6941)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/Masterminds/semver/v3](https://redirect.github.com/Masterminds/semver)
| `v3.3.1` -> `v3.4.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fMasterminds%2fsemver%2fv3/v3.4.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.4.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.3.1/v3.4.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.3.1/v3.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

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

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

[Compare
Source](https://redirect.github.com/Masterminds/semver/compare/v3.3.1...v3.4.0)

There are a few changes in this release to highlight:

1. `Constraints` now has a property `IncludePrerelease`. When set to
true the `Check` and `Validate` methods will include prereleases.
2. When an AND group has one constraint with a prerelease but more than
one constraint then prereleases will be included. For example,
`>1.0.0-beta.1 < 2`. In the past this would not have included
prereleases because each constraint needed to have a prerelease. Now,
only one constraint needs to have a prerelease. This is considered a
long standing bug fix. Note, this does not carry across OR groups. For
example, `>1.0.0-beta.1 < 2 || > 3`. In this case, prereleases will not
be included when evaluating against `>3`.
3. `NewVersion` coercion with leading "0"'s is restored. This can be
disabled by setting the package level property `CoerceNewVersion` to
`false`.

#### What's Changed

- fix the CodeQL link by
[@&#8203;dmitris](https://redirect.github.com/dmitris) in
[https://github.com/Masterminds/semver/pull/257](https://redirect.github.com/Masterminds/semver/pull/257)
- Restore detailed errors when failed to parse with NewVersion by
[@&#8203;mattfarina](https://redirect.github.com/mattfarina) in
[https://github.com/Masterminds/semver/pull/262](https://redirect.github.com/Masterminds/semver/pull/262)
- updating go version tested with by
[@&#8203;mattfarina](https://redirect.github.com/mattfarina) in
[https://github.com/Masterminds/semver/pull/263](https://redirect.github.com/Masterminds/semver/pull/263)
- Restore the ability to have leading 0's with NewVersion by
[@&#8203;mattfarina](https://redirect.github.com/mattfarina) in
[https://github.com/Masterminds/semver/pull/266](https://redirect.github.com/Masterminds/semver/pull/266)
- Handle pre-releases on all in an and group by
[@&#8203;mattfarina](https://redirect.github.com/mattfarina) in
[https://github.com/Masterminds/semver/pull/267](https://redirect.github.com/Masterminds/semver/pull/267)
- Add property to include prereleases by
[@&#8203;mattfarina](https://redirect.github.com/mattfarina) in
[https://github.com/Masterminds/semver/pull/268](https://redirect.github.com/Masterminds/semver/pull/268)
- Updating the error message handling by
[@&#8203;mattfarina](https://redirect.github.com/mattfarina) in
[https://github.com/Masterminds/semver/pull/269](https://redirect.github.com/Masterminds/semver/pull/269)
- Update the release notes and readme for new version by
[@&#8203;mattfarina](https://redirect.github.com/mattfarina) in
[https://github.com/Masterminds/semver/pull/270](https://redirect.github.com/Masterminds/semver/pull/270)

#### New Contributors

- [@&#8203;dmitris](https://redirect.github.com/dmitris) made their
first contribution in
[https://github.com/Masterminds/semver/pull/257](https://redirect.github.com/Masterminds/semver/pull/257)

**Full Changelog**:
https://github.com/Masterminds/semver/compare/v3.3.1...v3.4.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 these
updates 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:eyJjcmVhdGVkSW5WZXIiOiI0MC42Mi4xIiwidXBkYXRlZEluVmVyIjoiNDAuNjIuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiU2tpcCBDaGFuZ2Vsb2ciLCJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-27 15:07:58 -07:00
..

Telemetry Schema Files

The schema module contains packages that help to parse and validate schema files.

Each major.minor schema file format version is implemented as a separate package, with the name of the package in the vmajor.minor form.

To parse a schema file, first decide what file format version you want to parse, then import the corresponding package and use the Parse or ParseFile functions like this:

import schema "go.opentelemetry.io/otel/schema/v1.1"

// Load the schema from a file in v1.1.x file format.
func loadSchemaFromFile() error {
	telSchema, err := schema.ParseFile("schema-file.yaml")
	if err != nil {
		return err
	}
	// Use telSchema struct here.
}

// Alternatively use schema.Parse to read the schema file from io.Reader.
func loadSchemaFromReader(r io.Reader) error {
	telSchema, err := schema.Parse(r)
	if err != nil {
		return err
	}
	// Use telSchema struct here.
}