Skip to content

Rename reflect.Ptr to reflect.Pointer#5303

Closed
pietern wants to merge 2 commits into
bump-go1.26from
go1.26-reflect-pointer
Closed

Rename reflect.Ptr to reflect.Pointer#5303
pietern wants to merge 2 commits into
bump-go1.26from
go1.26-reflect-pointer

Conversation

@pietern
Copy link
Copy Markdown
Contributor

@pietern pietern commented May 21, 2026

Stacked on top of #5302.

reflect.Ptr is a legacy alias for reflect.Pointer. Renames the 13 call sites and adds a forbidigo rule to keep it that way.

This pull request and its description were written by Isaac.

pietern added 2 commits May 21, 2026 20:50
reflect.Ptr is kept as a legacy alias for reflect.Pointer; reflect.Pointer
is the canonical name and matches the Kind constant name elsewhere. This
commit only adds the rule, so lint will fail on existing call sites. The
follow-up commit applies the rename.

Co-authored-by: Isaac
reflect.Ptr is a legacy alias for reflect.Pointer; the canonical name
matches the rest of the Kind constants. Lint added in the previous commit
now passes.

Co-authored-by: Isaac
@github-actions
Copy link
Copy Markdown
Contributor

Approval status: pending

/bundle/ - needs approval

7 files changed
Suggested: @denik
Also eligible: @shreyas-goenka, @andrewnester, @janniklasrose, @anton-107, @lennartkats-db

/libs/flags/ - needs approval

Files: libs/flags/json_flag.go
Suggested: @simonfaltum
Also eligible: @renaudhartert-db, @hectorcast-db, @parthban-db, @tanmay-db, @Divyansh-db, @tejaskochar-db, @mihaimitrea-db, @chrisst, @rauchy

General files (require maintainer)

5 files changed
Based on git history:

  • @denik -- recent work in bundle/direct/, bundle/direct/dresources/, libs/testserver/

Any maintainer (@andrewnester, @anton-107, @denik, @shreyas-goenka, @simonfaltum, @renaudhartert-db) can approve all areas.
See OWNERS for ownership rules.

@pietern pietern temporarily deployed to test-trigger-is May 21, 2026 19:09 — with GitHub Actions Inactive
@pietern pietern temporarily deployed to test-trigger-is May 21, 2026 19:09 — with GitHub Actions Inactive
@pietern
Copy link
Copy Markdown
Contributor Author

pietern commented May 21, 2026

This is done automatically by a newer version of golangci-lint.

That's better than a custom rule.

@pietern pietern closed this May 21, 2026
@pietern pietern deleted the go1.26-reflect-pointer branch May 21, 2026 19:22
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.

1 participant