ahnazary opened a new pull request, #9326:
URL: https://github.com/apache/devlake/pull/9326

   ### Summary
   `tools/pluginsgen` registers compiled-in plugins by value 
(`plugin.MustRegister(org.Org{})`). Methods declared on pointer receivers are 
not in a value's method set, so `org` (whose `Init` and `ApiResources` are on 
`*Org`) is never initialised and gets no routes. Since v1.0.3-beta19 every 
`/plugins/org/*` endpoint (`teams.csv`, `users.csv`, 
`user_account_mapping.csv`, ...) returns 404.
   
   Shared-object loading always registered a pointer 
(`plugin.Lookup("PluginEntry")` returns `*T`), so registering `&T{}` restores 
the pre-#9288 behaviour for every plugin.
   
   ### Changes
   - `tools/pluginsgen`: emit `plugin.MustRegister(&pkg.Type{})`
   - `plugins/all/all.go`: regenerated
   
   ### Does this close any open issues?
   Closes #9327. Regression from #9288.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to