Skip to content
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

--id flag seems to be unused in HEAD (8.0.0 pre-release) #3124

Closed
dotproto opened this issue May 7, 2024 · 2 comments · Fixed by #3126
Closed

--id flag seems to be unused in HEAD (8.0.0 pre-release) #3124

dotproto opened this issue May 7, 2024 · 2 comments · Fixed by #3126
Assignees
Milestone

Comments

@dotproto
Copy link
Contributor

dotproto commented May 7, 2024

During the drafting process for the web-ext 8.0.0 release's documentation update, @rebloor noted that that the "--id [seems to have] no purpose in version 8." Upon reviewing the source and running through a couple test cases, I did not see a way to effectively use the --id flag in the current master branch.

I suggest that we remove the --id flag before we formally release version 8.0.0.

Case 1: Using--id when submitting a new add-on without an id in manifest.json

2024-05-06-test1.zip

$ web-ext sign --id "2024-05-06-test1@webext.test"
Building web extension from /Users/current-user/2024-05-06-test1/src

UsageError: Cannot set custom ID 2024-05-06-test1@webext.test - The add-on ID must be specified in the manifest.json file.

Case 2: Using--id when signing an add-on with an id in manifest.json

2024-05-06-test2.zip

$ web-ext sign --id "2024-05-06-test2@webext.test"
Building web extension from /Users/current-user/2024-05-06-test2/src

UsageError: Cannot set custom ID 2024-05-06-test2@webext.test because manifest.json already defines ID ${manifestId}
@dotproto
Copy link
Contributor Author

dotproto commented May 7, 2024

@willdurand, it looks like you may have been the last person to touch some related code in #2737. Am I missing anything that would necessitate keeping the --id flag?

@Rob--W
Copy link
Member

Rob--W commented May 23, 2024

We are considering the following options:

  • Remove the --id flag.
  • Keep --id flag (and automatic id detection previously saved to a file), and repurpose this to improve the developer experience when the ID is missing from manifest.json. In this case, show a suggestion on how the manifest.json file should be corrected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants