Solve unexported field or method panic #1819
No reviewers
Labels
No Label
backport/done
backport/v1
blocked
db
oracle
db
sqlserver
duplicate
feature
cache
frontport/done
frontport/main
invalid
kind
breaking
kind
bug
kind
build
kind
dependencies
kind
docs
kind
driver
kind
enhancement
kind
feature
kind
performance
kind
proposal
kind
question
kind
refactor
kind
testing
need
feedback
need
test
proposal:accepted
RaspBerry Pi
regression
skip-changelog
upstream
wip
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#1819
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "solve_unexported_field"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Protobuf3 generates lowercase members in structs instead of members with prefix
XXX
.I have been using protobuf with
protoc-go-inject-tag
to generatexorm
tables for a long time, it is really convenient and improved development efficiency.But when I tried to upgrade protobuf and grpc to current stable version, I got the panicpanic: reflect.Value.Interface: cannot return value obtained from unexported field or method
.For forward compatible, and not to change so much codes, I updated these codes and checked with
make build & make test
.My programs work well now, it seems that the problem is solved.I wander why not passing the
!fileValue.CanSet()
members for such a long time, is there any reason not do so?Please resolve the conflicts.
Pull request closed