Unable to import `github.com/dolthub/doltgresql/postgres/*`
- Dominant language
- Go
- Stars
- 2.1k
- Forks
- 73
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 129
Description
Hi Dolt creators,
Inspired by [your blog post](https://www.dolthub.com/blog/2024-08-13-translating-create-table-statements-mysql-postgres/), I'm interested in using the `postgres` package to do some MySQL<->Postgresql transpiling tasks. However, I found that `go build` failed with:
```
../../go/pkg/mod/github.com/dolthub/doltgresql@v0.11.1/postgres/parser/lex/predicates.go:59:17: undefined: reservedKeywords
```
After checking the contribution guide, I learned that the parser package relies on some source files generated by `doltgresql/postgres/parser/build.sh`. However, when importing the package in my project via `import "github.com/dolthub/doltgresql/postgres/parser/types"`, it seems impossible to run the script manually since the `go mod` cache is a read-only directory:
```
mkdir: parser/gen: Permission denied
./build.sh: line 12: parser/gen/types_regex.tmp: No such file or directory
```
Could you consider keeping the generated files in the source tree to make the project more compatible with the standard Go toolchain? This would simplify the build process for users who want to integrate the `postgres` package into their projects.
I appreciate your time and look forward to your feedback.
Contributor guide
Assessment
This issue has not been assessed yet.