Comments (8)
There are buildifier rules:
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier")
buildifier(
name = "buildifier",
)
from bazel-central-registry.
@fmeum I would also expect to be built from source like any other module.
I also think it should have it's own module, if you see the use case that @jsharpe posted, as a user you should not care if this is implemented using go or not. It does not make sense for a none go project to have to register go toolchains on your own when you only want to run the buildifier rule.
from bazel-central-registry.
It is available via go_deps
, but I agree that it should probably be available as a module. Once it is, we may want to forbid its use via go_deps
to prevent version skew.
from bazel-central-registry.
I'm not clear why this should be a Bazel Module. Why is this different from any other Go library? Are there any bazel rules or starlark modules to be loaded from it?
from bazel-central-registry.
@alexeagle I found this issue through the linked buildtools ticket. Trying to use buildifier from a modular Bazel project is a bit of a hassle and having a module here would be a great help. It is useful for non-go projects, and I'd prefer that developers don't have to install Go themselves to run buildifier. (If Bazel installs it internally through rules_go that's fine.)
from bazel-central-registry.
@AttilaTheFun Even as a module buildtools
would still not contain a precompiled version of buildifier. You might be interested in the buildifier_prebuilt
module instead.
from bazel-central-registry.
@fmeum I donβt mind building from source. It would be cached most of the time.
from bazel-central-registry.
We do have rules_go support for having a Bazel module be a Go module, so there is no real technical blocker or potential source of linker errors.
However, buildtools currently uses a tag scheme that is incompatible with the Go module release process: it only has tags of the form 6.4.0
, not v6.4.0
. Even if it did, Go considers different major versions to be entirely distinct dependencies, so continuing this version scheme would result in headaches.
@vladmos We had a similar discussion a while ago. Would it be feasible for buildtools
to adopt the version scheme v1.X.Y
, where X
is aligned with the current major version of Bazel?
from bazel-central-registry.
Related Issues (20)
- wanted: Opencv HOT 1
- wanted:Pointcloud Library
- wanted: glfw/glfw HOT 2
- wanted: ocornut/imgui
- [Bug]: dd
- wanted: HDFGroup/hdf5
- wanted: Blosc/c-blosc2 HOT 1
- Add metadata.json JSON Schema validation to CI HOT 1
- wanted: google/copybara HOT 1
- [Bug]: Incorrect version sorting on https://registry.bazel.build/ HOT 2
- wanted: google/fuzztest HOT 1
- wanted: hdl/bazel_rules_hdl
- wanted: google/fuzztest HOT 3
- [Bug]: Bazel reports non-actionable errors when `ctx.download_and_extract(..)` fails with `--experimental_remote_downloader` enabled. HOT 5
- wanted: google/or-tools
- wanted: rules-proto-grpc/rules_proto_grpc
- [Bug]: fmt 10.2.1, use of undeclared identifier 'file_buffer' HOT 4
- [Bug]: c-ares
- [Idea] Support Starlark overlays without patches HOT 1
- Wanted: rules_antlr in registry! :)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bazel-central-registry.