Menu

My Edge Add-ons submission failed validation: the store package contained two manifest.json files
πŸ“°

My Edge Add-ons submission failed validation: the store package contained two manifest.json files

DEV Community: javascriptΒ·alapha888Β·about 4 hours ago
#P33bgkir
#devtojavascript#devto#dev#manifest#json
Reading 0:00
15s threshold

I submitted my extension ConvoExport to the Microsoft Edge Add-ons store, and the first package failed validation. The reason was not in the code at all. The zip contained two manifest.json files: one at the root, and one inside src/.

How it happened

My packaging script builds a staging directory, copies the src/ tree into it, and writes a derived manifest.json at the staging root. The src/ tree already contained a manifest.json (the source manifest the extension loads during development). The packager copied it along with everything else, then wrote a second manifest at the root. The resulting zip had 30 entries, two of them manifests.

Why my own checks missed it

The packaging self-check verified that a manifest.json existed at the package root, and that its fields were correct. It never checked that it was the only one.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.