entry, lang: core: embedded: provisioner: Allow more than one entry

This changes the entry API slightly to allow for more than one entry
registered, which makes building, testing and user tooling easier.
This commit is contained in:
James Shubin
2024-04-16 14:10:20 -04:00
parent bc4b5d96b0
commit 68ee163eb1
4 changed files with 35 additions and 25 deletions

View File

@@ -27,7 +27,7 @@
// additional permission if he deems it necessary to achieve the goals of this
// additional permission.
//go:build embedded_provisioner
//go:build !noembedded_provisioner
package coreprovisioner
@@ -434,7 +434,7 @@ func init() {
localArgs: a.(*localArgs), // force the correct type
}
entry.Register(&entry.Data{
entry.Register(ModuleName, &entry.Data{
Program: ModuleName,
Version: Version, // TODO: get from git?