web-ext icon indicating copy to clipboard operation
web-ext copied to clipboard

Add a new mandatory CLI flag that states source code information

Open wagnerand opened this issue 3 years ago • 4 comments

Is this a feature request or a bug?

Feature request

What is the current behavior?

A common issue with API submissions is that the add-on itself uses machine-generated code but developers do not attach source code to it. Some don't know, others forgot or don't do it for other reasons.

What is the expected or desired behavior?

To help reviewers and reduce back and forth with developers, web-ext should add a mandatory CLI flag that allows to pass a source code zip file and a different one to state that source code is not needed. The developer hub already does this, and the API should have a similar feature.

wagnerand avatar Oct 31 '22 12:10 wagnerand

web-ext currently works by zipping --source-dir first and uploading that so we should consider how another source directory would work in that workflow. If it's machine-generated code that it's very likely that web-ext is used in some kind of script, so perhaps specifying another directory that web-ext would zip up too would be more appropriate.

eviljeff avatar Oct 31 '22 14:10 eviljeff

@rpl @willdurand @Rob--W can I get your thoughts on how this feature should work?

eviljeff avatar Jun 20 '23 13:06 eviljeff

The next triage meeting to discuss this is in three weeks.

Here are my thoughts:

The option being mandatory would require a major version bump.

I would accept a zip file as parameter, and not zip directories automatically. Accepting a directory carries the risk of inadvertently uploading files that the dev didn't intend to, and would also need support for including/excluding specific files/directories. I can be convinced otherwise.

Rob--W avatar Jun 20 '23 18:06 Rob--W

The option being mandatory would require a major version bump.

We are working on v8 right now, so that part won't be a problem.

willdurand avatar Jun 29 '23 12:06 willdurand