Skip to content

cannot vendor pg_query_go #125

Closed
Closed
@TotallyGamerJet

Description

@TotallyGamerJet

This library cannot be vendored because parser/include doesn't contain any go files.

Error:

# github.com/pganalyze/pg_query_go/v6/parser
vendor/github.com/pganalyze/pg_query_go/v6/parser/parser.go:7:10: fatal error: 'pg_query.h' file not found
    7 | #include "pg_query.h"
      |          ^~~~~~~~~~~~
1 error generated.

Reproduce:

package main

import _ "github.com/pganalyze/pg_query_go/v6"

func main() {}
go get github.com/pganalyze/pg_query_go/v6@latest
go mod vendor
go build

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions