Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buildozer doesn't accept "BUILD.bazel" #1240

Open
Zemnmez opened this issue Feb 12, 2024 · 1 comment
Open

buildozer doesn't accept "BUILD.bazel" #1240

Zemnmez opened this issue Feb 12, 2024 · 1 comment

Comments

@Zemnmez
Copy link

Zemnmez commented Feb 12, 2024

my repo uses "BUILD.bazel" instead of "BUILD", which I believe is the current standard. however, buildozer doesn't support this :(

/home/thomas/devel/monorepo/sh/project/cultist/multiplayer/BUILD: file not found or not readable
/home/thomas/devel/monorepo/sh/ts/math/BUILD: file not found or not readable
/home/thomas/devel/monorepo/sh/ts/react/CopyToClipboard/BUILD: file not found or not readable
/home/thomas/devel/monorepo/sh/ts/pulumi/BUILD: file not found or not readable
/home/thomas/devel/monorepo/sh/bzl/hash/test/BUILD: file not found or not readable
/home/thomas/devel/monorepo/sh/ts/math/canvas/braille/BUILD: file not found or not readable
/home/thomas/devel/monorepo/sh/ts/pulumi/pleaseintroducemetoyour.dog/BUILD: file not found or not readable
/home/thomas/devel/monorepo/sh/bzl/transcode_web/BUILD: file not found or not readable
/home/thomas/devel/monorepo/sh/project/zemn.me/components/BUILD: file not found or not readable
/home/thomas/devel/monorepo/sh/project/ck3/recursive-vassals/BUILD: file not found or not readable
@stagnation
Copy link

stagnation commented Mar 8, 2024

What commands do you run?

Do you have mixed BUILD and BUILD.bazel files?
I looked around and could not reproduce it with only BUILD.bazel files,
but if I create a BUILD in the root and a nested BUILD.bazel it fails.

$ ls
$ touch BUILD.bazel
$ buildozer 'new cc_library foobar'  //:__pkg__
fixed .../task/buildozer/build-files/BUILD.bazel
$ buildozer 'add srcs foobar.c' //:foobar
fixed .../task/buildozer/build-files/BUILD.bazel
$ buildozer -f <(echo 'new cc_library bar|//:__pkg__')
fixed .../task/buildozer/build-files/BUILD.bazel
$ cat BUILD.bazel
cc_library(
    name = "foobar",
    srcs = ["foobar.c"],
)

cc_library(name = "bar")

Now create a root BUILD and a nested BUILD.bazel

$ mkdir nested
$ touch BUILD.bazel
$ mv BUILD.bazel BUILD
$ buildozer 'new py_library nested' //nested:__pkg__
.../task/buildozer/build-files/nested/BUILD: file not found or not readable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants