mirror of
https://github.com/google/go-jsonnet.git
synced 2025-09-29 09:21:03 +02:00
Prevent autogenerated header in BUILD.bazel
Before this change updating BUILD.bazel file with Gazelle would add `c-bindings/libgojsonnet.h` to `srcs/`. It was prevented manually, but someone is going to let it slip in at some point, so it's better to just not include it there in the first place.
This commit is contained in:
parent
13437c69e1
commit
197b8c58d0
@ -1,5 +1,14 @@
|
||||
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
|
||||
|
||||
# If you run `go build` a header "libgojsonnet.h" will be autogenerated in
|
||||
# this directory. Then it can be picked up by Gazelle and added to `srcs` here.
|
||||
# When building with Bazel the file gets created elsewhere in Bazel's
|
||||
# sandbox tree, so when using Bazel exclusively it won't cause any trouble.
|
||||
# However, sooner or later someone is going to run Gazelle after using `go build`
|
||||
# and then the file may slip in, so it's better to just exclude it explicitly,
|
||||
# with the directive below:
|
||||
# gazelle:exclude ./libgojsonnet.h
|
||||
|
||||
go_library(
|
||||
name = "go_default_library",
|
||||
srcs = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user