TIL: Turso’s go-libsql & Build Constraints Error

TIL: Turso’s go-libsql & Build Constraints Error

turso

I was setting up a new Linux development environment and got the below error whenever I ran ‘go build’:

github.com/tursodatabase/go-libsql: 
build constraints exclude all Go 
files in [directory]

After scratching my head for awhile, it dawned on me that the new environment might not have a c-compiler installed. I tried installing ‘gcc’ and that solved the issue.

Hope this post can save someone else the amount of time I spent today trying to figure this out.

Cheers 🥂

More Articles