Skip to content

Commit

Permalink
feat: add new PlugInfo function to match vib v0.8.0 requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
axtloss committed Aug 13, 2024
1 parent 59f4d5f commit ed4a43c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,20 @@ func signFileList(module *FsGuardModule) {
mainCommands = append(mainCommands, fmt.Sprintf("cat /FsGuard/signature >> /sources/%s/FsGuard", module.Name))
}

//export PlugInfo
func PlugInfo() *C.char {
plugininfo := &api.PluginInfo{
Name: "fsguard",
Type: api.BuildPlugin

Check failure on line 95 in plugin.go

View workflow job for this annotation

GitHub Actions / build

missing ',' before newline in composite literal

Check failure on line 95 in plugin.go

View workflow job for this annotation

GitHub Actions / build

missing ',' before newline in composite literal
}
pluginjson, err := json.Marshal(plugininfo)
if err != nil {
return C.CString(fmt.Sprintf("ERROR: %s", err.Error()))
}
return C.CString(string(pluginjson))
}


//export BuildModule
func BuildModule(moduleInterface *C.char, recipeInterface *C.char) *C.char {
var module *FsGuardModule
Expand Down

0 comments on commit ed4a43c

Please sign in to comment.