Skip to content

How to modify the example to include libpg (postgres) ? #2

Answered by scasagrande
marvin-hansen asked this question in Q&A
Discussion options

You must be logged in to vote

you'll want to change your target labels because you are using unstable labels that are not designed for direct reference

my suggestion to get around module visibility:

BUILD.bazel

alias(
    name = "libpq",
    actual = "@libpq",
)

and then your annotation, try disabling the build file generation, it will frequently break call its own toolchains and break out of your bazel ecosystem

crate.annotation(
    crate = "pq-sys",
    gen_build_script = "off",
    deps = ["@@//:libpq"],
)

Replies: 6 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@scasagrande
Comment options

Comment options

You must be logged in to vote
2 replies
@scasagrande
Comment options

@scasagrande
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@scasagrande
Comment options

Answer selected by marvin-hansen
Comment options

You must be logged in to vote
2 replies
@scasagrande
Comment options

@marvin-hansen
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants