Giter Site home page Giter Site logo

Bazel Support about weaver HOT 6 OPEN

lbhdc avatar lbhdc commented on August 22, 2024
Bazel Support

from weaver.

Comments (6)

mwhittaker avatar mwhittaker commented on August 22, 2024 1

I see. Thanks for explaining; I'm not very familiar with bazel. I'll leave the issue open as a TODO then.

from weaver.

mwhittaker avatar mwhittaker commented on August 22, 2024

Hi @lbhdc, we do not have any official bazel support.

To build a Service Weaver application, you have to run weaver generate ./... and go build. Does bazel support that?

from weaver.

lbhdc avatar lbhdc commented on August 22, 2024

Thanks for such a quick response @mwhittaker!

It does supports something similar to that. The canonical way to build go programs is with the rules_go ruleset which downloads the toolchain, and handles calling go build, go run, or go test. Related rulesets also handle generating all the bazel integrations for third party packages.

https://github.com/bazelbuild/rules_go

As for the weaver command, support in the form of a ruleset is needed to make it available to bazel users.

Just brainstorming the api, but I would imagine using such a ruleset would kinda look like this. A user would add this glob to their BUILD file, and bazel would invoke the weaver command when any of the dependencies have been updated. The code would then be able to be consumed by yet another down stream tools (like kubectl for manifests).

weaver_generate(
  name = "foo",
  deps = [
    "//my/top/level/weaver:component"
  ]
)

from weaver.

lbhdc avatar lbhdc commented on August 22, 2024

Thanks, I appreciate it 😁

from weaver.

lbhdc avatar lbhdc commented on August 22, 2024

If an open source ruleset was developed, would that be something you would be interested in having contributed back to service weaver?

from weaver.

mwhittaker avatar mwhittaker commented on August 22, 2024

Yeah, for sure!

from weaver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.