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

Fix reflect.Pointer backward compatibility #956

Merged
merged 1 commit into from
Aug 17, 2024

Conversation

xxxVitoxxx
Copy link
Contributor

@xxxVitoxxx xxxVitoxxx commented Jun 25, 2024

Explanation of what this pull request does.

/go/pkg/mod/github.com/pelletier/go-toml/v2@v2.2.2/marshaler.go:735:40: undefined: reflect.Pointer

If we want to reflect.Pointer backward compatibility. here should use reflect.Ptr.

related issue: #812


Benchmarks not needed

@xxxVitoxxx xxxVitoxxx force-pushed the vito-fix-reflect-ptr branch 2 times, most recently from 0d19ae1 to 4afbd4a Compare July 30, 2024 17:59
Explanation of what this pull request does.
If we want to reflect.Pointer backward compatibility. here should use reflect.Ptr.
@xxxVitoxxx xxxVitoxxx force-pushed the vito-fix-reflect-ptr branch from 4afbd4a to 7907403 Compare July 30, 2024 18:26
@pelletier pelletier added the bug Issues describing a bug in go-toml. label Aug 17, 2024
@pelletier
Copy link
Owner

Thank you!

@pelletier pelletier closed this Aug 17, 2024
@pelletier pelletier reopened this Aug 17, 2024
@pelletier pelletier merged commit a437caa into pelletier:v2 Aug 17, 2024
22 checks passed
@xxxVitoxxx xxxVitoxxx deleted the vito-fix-reflect-ptr branch August 23, 2024 18:04
dmathieu referenced this pull request in open-telemetry/opentelemetry-go-contrib Aug 26, 2024
…6040)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/pelletier/go-toml/v2](https://togithub.com/pelletier/go-toml)
| `v2.2.2` -> `v2.2.3` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fpelletier%2fgo-toml%2fv2/v2.2.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fpelletier%2fgo-toml%2fv2/v2.2.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fpelletier%2fgo-toml%2fv2/v2.2.2/v2.2.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fpelletier%2fgo-toml%2fv2/v2.2.2/v2.2.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>pelletier/go-toml (github.com/pelletier/go-toml/v2)</summary>

###
[`v2.2.3`](https://togithub.com/pelletier/go-toml/releases/tag/v2.2.3)

[Compare
Source](https://togithub.com/pelletier/go-toml/compare/v2.2.2...v2.2.3)

<!-- Release notes generated using configuration in .github/release.yml
at v2.2.3 -->

#### What's Changed

##### What's new

- Allow `int`, `uint`, and `float` as map keys by
[@&#8203;daniel-weisse](https://togithub.com/daniel-weisse) in
[https://github.com/pelletier/go-toml/pull/958](https://togithub.com/pelletier/go-toml/pull/958)

##### Performance

- Remove unstable.Parser allocation when creating Decoder by
[@&#8203;mvdan](https://togithub.com/mvdan) in
[https://github.com/pelletier/go-toml/pull/953](https://togithub.com/pelletier/go-toml/pull/953)

##### Fixed bugs

- Fix reflect.Pointer backward compatibility by
[@&#8203;xxxVitoxxx](https://togithub.com/xxxVitoxxx) in
[https://github.com/pelletier/go-toml/pull/956](https://togithub.com/pelletier/go-toml/pull/956)

##### Documentation

- Fix readme typo by [@&#8203;testwill](https://togithub.com/testwill)
in
[https://github.com/pelletier/go-toml/pull/951](https://togithub.com/pelletier/go-toml/pull/951)

##### Other changes

- go.mod: bump minimum language version to 1.21 by
[@&#8203;mvdan](https://togithub.com/mvdan) in
[https://github.com/pelletier/go-toml/pull/949](https://togithub.com/pelletier/go-toml/pull/949)
- Bump testing to go 1.23 by
[@&#8203;pelletier](https://togithub.com/pelletier) in
[https://github.com/pelletier/go-toml/pull/961](https://togithub.com/pelletier/go-toml/pull/961)

#### New Contributors

- [@&#8203;mvdan](https://togithub.com/mvdan) made their first
contribution in
[https://github.com/pelletier/go-toml/pull/949](https://togithub.com/pelletier/go-toml/pull/949)
- [@&#8203;testwill](https://togithub.com/testwill) made their first
contribution in
[https://github.com/pelletier/go-toml/pull/951](https://togithub.com/pelletier/go-toml/pull/951)
- [@&#8203;xxxVitoxxx](https://togithub.com/xxxVitoxxx) made their first
contribution in
[https://github.com/pelletier/go-toml/pull/956](https://togithub.com/pelletier/go-toml/pull/956)

**Full Changelog**:
pelletier/go-toml@v2.2.2...v2.2.3

</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 becomes conflicted, 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://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/open-telemetry/opentelemetry-go-contrib).

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

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
bug Issues describing a bug in go-toml.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants