-
- Downloads
Implement plugins for bootstrap go modules
Now that we have multi-stage bootstrapping, we can make the primary builder build more dynamic. Add the concept of plugins that will be linked and loaded into bootstrap_go_binary or bootstrap_go_package modules. It's expected that the plugin's init() functions will do whatever registration is necessary. Example Blueprint definition: bootstrap_go_binary { name: "builder", ... } bootstrap_go_package { name: "plugin1", pluginFor: ["builder"], } A package may specify more than one plugin if it will be inserted into more than one go module. Change-Id: I109835f444196b66fc4018c3fa36ba0875823184
Showing
- Blueprints 5 additions, 0 deletionsBlueprints
- bootstrap/bootstrap.go 129 additions, 20 deletionsbootstrap/bootstrap.go
- bootstrap/command.go 1 addition, 0 deletionsbootstrap/command.go
- build.ninja.in 11 additions, 11 deletionsbuild.ninja.in
- context.go 53 additions, 14 deletionscontext.go
- loadplugins/loadplugins.go 67 additions, 0 deletionsloadplugins/loadplugins.go
- module_ctx.go 13 additions, 5 deletionsmodule_ctx.go
Loading
Please register or sign in to comment