-
Notifications
You must be signed in to change notification settings - Fork 7.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pre-built binaries in source: app/plugin/jira/plugin_* #8893
Comments
Same applies for |
Hi @onlyjob - I apologize as I missed this Issue somehow - I will have an engineer take a look at this soon. |
Committing them hasn't caused any problems for us and it removes a build step that needs to be worried about as they are required for the Go code to compile. If it's causing issues for you or you have a good reason why we should remove them and add it as a build step instead, I'd love to hear it. |
The problem is that your source distribution (tarball) is not pure source distribution. This is not DFSG compliant. We have to throw away pre-built binaries and build everything from source in controlled environment. Since there is no straightforward way to build those plugins I just had to disable them... |
You should be able to easily build them yourself using the source:
And packaging them like we do in our Makefile https://github.com/mattermost/mattermost-server/blob/master/Makefile#L303 |
That describes current situation accurately yet the problem is presence of two large binary blobs committed to repository (not about how you make them). :) |
I'm not sure I see how it's a problem, just throw away the included plugin bits and re-build them yourself as part of your build process. Is it just that you need the source for the plugins included in the distributions? |
That's exactly what I will have to do if committing binaries to Vcs does not bother you... |
Hi @onlyjob . Thanks for reporting this and the other packaging/licensing related issues you have raised in other tickets. I'm a core developer at Mattermost and I'll be taking care of making sure these tickets get dealt with. I can't promise a quick resolution, particularly with the license issues as any changes will have to go through a bunch of people including lawyers, but I am hopeful that we can eventually bring all these tickets to a satisfactory conclusion that will keep the business and legal people here happy and also deal with the licensing and packaging concerns from a DFSG point of view. On this issue specifically, we discussed this last week in our developers meeting and concluded that we should change this to remove the binary blobs from the |
Thanks @grundleborg. FYI download on build is ever worse because it is a privacy breach and a potential security issue... It should be possible to reproducibly build in the secure/offline environment. If external repository should be available on build time then perhaps using git submodules might be an answer. The only minor problem with submodules is that you'll have to (manually) generate comprehensive source tarball instead of relying on github tar.gz export which doesn't include submodules. |
I think the plan is that building this repo will no longer include the plugins unless you also build them separately. However, we need to update our build server to build the plugins separately from source for the official release binaries. |
This has now been fixed. Pre-compiled plugins are no longer part of this source repository. |
app/plugin/jira/plugin_*
are pre-built binaries. It is a bad practice to commit pre-built files. Those files should be (re-)generated on build time.The text was updated successfully, but these errors were encountered: