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

Provide an option to generate BUILD.bazel #22

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

bshashank
Copy link

In my project, I already have files name build, so I'd like to generate BUILD.bazel files via pazel. This PR adds a new option:
BUILD_FILE_NAME = 'BUILD.bazel'
and setting that allows all the generated files to be named as BUILD.bazel instead of the default BUILD.

Bonus: update gitignore to ignore all bazel-* symlinks

This PR fixes #21

Testing Done:

❯ bazel test //pazel/...
INFO: Analyzed 15 targets (0 packages loaded, 0 targets configured).
INFO: Found 10 targets and 5 test targets...
INFO: Elapsed time: 0.210s, Critical Path: 0.01s
INFO: 0 processes.
INFO: Build completed successfully, 1 total action
//pazel/tests:test_bazel_rules                                  (cached) PASSED in 0.4s
//pazel/tests:test_generate_rule                                (cached) PASSED in 0.1s
//pazel/tests:test_helpers                                      (cached) PASSED in 0.1s
//pazel/tests:test_parse_imports                                (cached) PASSED in 0.1s
//pazel/tests:test_pazel_extensions                             (cached) PASSED in 0.1s

INFO: Build completed successfully, 1 total action

BUILD conflicts with the name 'build' on case-insensitive file-systems. pazel
should have a way for allowing the generated file name to be overriden
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

Successfully merging this pull request may close these issues.

Provide the ability to generate BUILD.bazel file instead of just BUILD
1 participant