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

undefined: sqlite3.Error issue #405

Open
abdyek opened this issue May 1, 2023 · 5 comments
Open

undefined: sqlite3.Error issue #405

abdyek opened this issue May 1, 2023 · 5 comments

Comments

@abdyek
Copy link

abdyek commented May 1, 2023

When create a hello project, the CLI trows this error to me

⬢[abdyek@toolbox Go]$ bud create hello
| Created: go.mod
| Created: package.json
| Created: .gitignore
| Created: public/favicon.ico
| Installed: go modules
| Installed: node modules
# github.com/livebud/bud/internal/dag
../../../../go/pkg/mod/github.com/livebud/[email protected]/internal/dag/sqlite.go:345:27: undefined: sqlite3.Error
../../../../go/pkg/mod/github.com/livebud/[email protected]/internal/dag/sqlite.go:349:47: undefined: sqlite3.ErrReadonlyDbMoved
| exit status 1
@DianWoung
Copy link

same question

@matthewmueller
Copy link
Contributor

Hmm, that's odd. What OS are you running on? Did you try running go mod tidy?

I sense it's related to: mattn/go-sqlite3#384

@DianWoung
Copy link

this err shows on windows,I use intel Mac is ok

@ErSauravAdhikari
Copy link

I am still experiencing this issue.
image

I tried to use go mod tidy as @matthewmueller pointed out. But this did not work as well.

Env: Linux/Mint

@ErSauravAdhikari
Copy link

I've manged to identify the problem.
This is related to CGO.

For more information you can check about static builds on google.

TLDR Fix:

saurav@saurav:~/Workspace/livebud/gandaki$ go env -w CGO_ENABLED=1

I think we should look more into this. As ideally it would be better if works irrespective of CGO_ENABLED=1/0.

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

No branches or pull requests

4 participants