FR: Use configurable buildozer + buildifier for BUILD file modify + formatting
See original GitHub issueFor build file modification the plugin uses simple text modifier
For build file formatting the plugin uses hardcoded version of buildifier. Currently set to 0.12.0 when the last released version is 0.20.0
We should use buildozer
for modifications and allow configuring local binaries
Feature requests:
- Use
buildozer
for build file modification. Have a built-in buildozer binary as well. Change buildModifier to drive the binary and not change text manually. (note:buildozer
expects to findbuildifier
on PATH, but I’m sure we can solve it, eg: modifying the PATH according to configured buildifier) - Allow overriding the built-in tools by providing path to locally installed tools (so we can use newer versions). We already have configuration for bazel binary - let’s add configuration for those tools as well.
Related issues
Issue Analytics
- State:
- Created 5 years ago
- Reactions:7
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Buildifier
Use buildifier to create standardized formatting for BUILD and .bzl files in the same way that clang-format is used for source files. $...
Read more >buildifier - Go Packages
This repository contains developer tools for working with Google's bazel buildtool. buildifier For formatting BUILD, BUILD.bazel and BUCK files ...
Read more >Release 0.11 Kivy's Developers - Buildozer's documentation!
It will use the specification file to create a package for ... sudo apt update ... But just add these requirements to a...
Read more >Python Rules for Bazel - Morioh
Documentation lives in the docs/ directory and in the Bazel Build Ency. ... Also consider using the -r flag to modify an entire...
Read more >FreeBSD New Ports Index
configuration * execute, edit and bookmark any SQL-statement, even batch-queries * load text files into tables * create and read dumps of tables...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Another use-case for having buildifier and buildozer configuration is that on MacOS X (at least on 10.14)
/usr/local/bin
does not appear in PATH that Java gets from environment and this is where these tools would normally be installed if access to/usr/bin
, `/bin’ or other system folders is restricted.I notice this issue starkly while switching back and forth between this plugin and VScode with its plugin… which (while not without its own open issues) “just works” with the
buildifier
already on the PATH.