Comments (6)
I see. Thanks for explaining; I'm not very familiar with bazel. I'll leave the issue open as a TODO then.
from weaver.
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.
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.
Thanks, I appreciate it 😁
from weaver.
If an open source ruleset was developed, would that be something you would be interested in having contributed back to service weaver?
from weaver.
Yeah, for sure!
from weaver.
Related Issues (20)
- Synchronized component implementation (feature idea) HOT 4
- TestExamples failing: no such file HOT 1
- Extending telemetry
- Gen client API please :)
- feat: add check rules to avoid cycle Ref HOT 12
- wasm
- The dashboard seems a little unusual. HOT 1
- 0.21.2 was not completed HOT 4
- Can Weaver add serializable for the sql.Null* structs? HOT 2
- The port of the configuration file is not in effect,SERVICEWEAVER_CONFIG=weaver.toml go run . The command runs the configuration file to take effect HOT 4
- Deployment of UPX-compressed program failed. HOT 2
- How to implement a modular-design ERP product similar to Odoo using ServiceWeaver HOT 1
- Tests failing on MacOS HOT 7
- Is it possible to choose how my components will split into machines? HOT 4
- http: proxy error: context canceled HOT 5
- Any plan to support more languages? HOT 1
- Deploy panic because app override internal env
- Component's interface and implementation in separate packages HOT 3
- weaverAutomarshal failure HOT 2
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 weaver.