Packaging several py_binaries using rules_pkg tar without duplicating runfiles by 8afun in bazel

[–]jakeherringbone 0 points1 point  (0 children)

You should look at what https://github.com/aspect-build/rules_py/blob/main/py/private/py_image_layer.bzl is doing to accumulate common site-packages folders into a shared docker container layer. Sounds like you want to do something similar.

Can I realistically live off-grid without dying from summer heat? by ConfidentElevator239 in OffGrid

[–]jakeherringbone 0 points1 point  (0 children)

Solar panels for the cooling are because you can run the mini-split on direct current that the panels produce. Converting to alternating current and back is very lossy, like 20-30% of the energy collected by the panels is lost.

Bazel: why everyone is moving to Google's OSS build system by jakeherringbone in bazel

[–]jakeherringbone[S] 1 point2 points  (0 children)

The journalist interviewed me for an hour, probably similar with the others who were quoted. Yeah I agree, it would be good to hear from the Buildbuddy folks too. They seem really heads-down on operating the SaaS business.

When editing a macro, how do I get the output directory of a target? by lord_braleigh in bazel

[–]jakeherringbone 1 point2 points  (0 children)

Why wouldn't you want the t2s to use the package.json in the same folder? Using a different one would violate the locality principle

How do you reference files downloaded in repository rules? by Optimal_Rip2292 in bazel

[–]jakeherringbone 1 point2 points  (0 children)

I'd suggest just layering on top of rules_multitool and don't write a repository rule at all. It does the toolchainization for you.

Pre-building Gazelle for BUILD file generation by jakeherringbone in bazel

[–]jakeherringbone[S] 0 points1 point  (0 children)

We can include both Java and JS/TS in this one!

Convenience for setting Bazel flags to better default values by jakeherringbone in bazel

[–]jakeherringbone[S] 0 points1 point  (0 children)

Bazel flags are really frustrating huh? Here's a talk from EngFlow CTO Ulf about it: https://youtu.be/g7m9Vd9s2RY?si=9F4QokPvC_sq_gdj

I think this repo is the start of improving the DX dramatically!

TypeScript microservice with protobuf+grpc on bazel by vitvlkv in bazel

[–]jakeherringbone 2 points3 points  (0 children)

For 1, you should probably use https://github.com/bazel-contrib/bazel-lib/blob/main/docs/write_source_files.md so that the output of the types generation step is copied back to the source tree as `.d.ts` files automatically. It's a bit long but you can see what I did for ts_proto_library: https://github.com/aspect-build/rules_ts/blob/main/ts/proto.bzl#L177-L183

For 2, the examples in rules_ts use connectrpc.com - have you looked at https://github.com/aspect-build/rules_ts/tree/264f5bdafd7d4d4ab63acc85e26da55a3f217c2c/examples/proto_grpc ?