For dolthub/go-mysql-server, MySQL compatibility is a top priority. For Grafana, avoiding Cgo is a top priority. dolthub/go-mysql-server uses Cgo for regex by default. You can disable it with a build tag, but then people have to know about that build tag for things like go test (and Mac users have issues with the dependency, we tried and go Makefile and CI working, but then realized we would still have this bump for devs).
So this is a minimal fork which makes non-cgo the default.
- Our Fork: grafana/go-mysql-server
- The branch we use: grafana/go-mysql-server/tree/no_cgo_default
- Is a Fork of: dolthub/go-mysql-server
This is a draft, need to run through it (Not optimal I don't think, steps probably can be better.)
Note: You will never merge into main.
- Go to grafana/go-mysql-server
- Click
Sync Forkin the Github UI. - checkout the
no_cgo_default, merge main into the branch - push to the branch
- Not the commit hash of your merge into main on this branch.
- Tag that branch, e.g.
git tag v0.20.1-grafana2 abc123xz - Maybe wait a little bit, I think you can mess up go caching if you try to fetch this to fast
- Switch to
grafana/grafana, find the replace direction for the fork ingo.mod, update it to the new tag.