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: dependency issue with go-sqlite3 package #143

Merged
merged 2 commits into from
Apr 21, 2023

Conversation

saeidee
Copy link
Member

@saeidee saeidee commented Apr 15, 2023

  • Do only one thing
  • Non breaking API changes
  • Tested

What did this pull request do?

The new error translation functionality was depending on go-sqlite3 package types and since the go-sqlite3 is a cgo package it needs the CGO_ENABLED=1 flag required plus it will require new compilers like cross-C-compiler to be installed on the machine.

In this PR I reimplement the error translation and do not depend on go-sqlite3 package at all.

@saeidee saeidee mentioned this pull request Apr 15, 2023
Copy link
Member

@a631807682 a631807682 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, maybe we can add some code comments to avoid being changed back.

@jinzhu jinzhu merged commit 3aa841d into go-gorm:master Apr 21, 2023
3 checks passed
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.

None yet

3 participants