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

Cant pass extensionId validation #418

Open
pustovitDmytro opened this issue Jul 2, 2022 · 2 comments · May be fixed by #431
Open

Cant pass extensionId validation #418

pustovitDmytro opened this issue Jul 2, 2022 · 2 comments · May be fixed by #431
Labels
bug Something isn't working

Comments

@pustovitDmytro
Copy link

pustovitDmytro commented Jul 2, 2022

Hi, thanks for the package, i have some issues with extensionId:

I've tried to use the next value, as specified in mine manifest.json:

"browser_specific_settings": {
      "gecko": {
        "id": "{f597ac1d-8bad-5110-82f9-bcd6b655c47b}"
      }
    }

but received an error:

Cannot set custom ID {f597ac1d-8bad-5110-82f9-bcd6b655c47b} because manifest.json declares ID {f597ac1d-8bad-5110-82f9-bcd6b655c47b}

As I understood it is related to web-ext issue where the suggested solution is to omit extensionId value.

However in this case I cant pass verifyConditions step.

No extensionId was specified in package.json. Omitting this would create a new extension instead of a new version

Can I run webext without extensionId?

Desktop (please complete the following information):

  • OS: Linux
  • Version 20.04

Additional context
I need gecko.id in the manifest to access storage.sync feature.

@noahnu noahnu added the bug Something isn't working label Jul 5, 2022
@synox
Copy link

synox commented Nov 12, 2023

This still does not work. I created a fork that relies on the id in the manifest.json, and ignores the provided id.
https://github.com/synox/semantic-release-firefox-add-on

@wkillerud
Copy link

For manifest v3 the ID is required in manifest.json, so the current validation in semantic-release-firefox-add-on is incompatible. I ended up applying a similar patch as synox using patch-package, and it worked as a charm.

diff --git a/node_modules/semantic-release-firefox-add-on/src/constants.js b/node_modules/semantic-release-firefox-add-on/src/constants.js
index c5dea36..2e34ade 100644
--- a/node_modules/semantic-release-firefox-add-on/src/constants.js
+++ b/node_modules/semantic-release-firefox-add-on/src/constants.js
@@ -11,8 +11,6 @@ const defaultOptions = {
 }
 
 const requiredOptions = {
-    extensionId:
-        'Omitting this would create a new extension instead of a new version.',
     targetXpi:
         'Omitting this would leave the xpi file unnamed when it is returned from mozilla.',
 }
diff --git a/node_modules/semantic-release-firefox-add-on/src/publish.js b/node_modules/semantic-release-firefox-add-on/src/publish.js
index ad0f63d..6c3ce35 100644
--- a/node_modules/semantic-release-firefox-add-on/src/publish.js
+++ b/node_modules/semantic-release-firefox-add-on/src/publish.js
@@ -16,7 +16,6 @@ const publish = async options => {
     // the console which will lead to the validation page which should contain
     // detailed reasons why the extension was rejected
     const {
-        extensionId,
         artifactsDir,
         channel,
         sourceDir,
@@ -46,7 +45,6 @@ const publish = async options => {
             apiSecret: FIREFOX_SECRET_KEY,
             artifactsDir,
             channel,
-            id: extensionId,
             sourceDir,
         },
         { signAddon },

@wkillerud wkillerud linked a pull request Apr 15, 2024 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants