Skip to content

using GORM results in obfuscated table names due to its indirect use of reflection #554

@windowscv

Description

@windowscv

What version of Garble and Go are you using?

$ garble version v0.7.0
$ go version v1.18.3

What did you do?

garble build -v -a -ldflags "-s -w" -trimpath -buildmode=pie

What did you see instead?

build Correct but gorm err

2022/06/17 12:00:00 sqggj5IQ.go:1 Error 1146: Table 'v2_v2.v2_co3i34_y3' doesn't exist
SELECT sum(u+d) as n,u,d,user,record,updated,server FROM `v2_co3i34_y3`.....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions