Unpredictable checksum
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Quiet
- Tech stack
- javascript
- Domain
- build-system, cli
Research direction
Start by reproducing the npm exec web-ext -- build --overwrite-dest --source-dir=distribution -a . -n package.zip command with the same unchanged distribution directory, then inspect which ZIP metadata changes between runs. Done means repeated builds produce byte-identical package.zip files and the same md5sum.
Written by the indexing model from the issue text.
Description
Hello,
Here is the command I run:
npm exec web-ext -- build --overwrite-dest --source-dir=distribution -a . -n package.zip
md5sum package.zip
Everytime I run this command (without changing anything in distribution), the checksum (a priori containing some file modification timestamps) will be different.
However paradoxically, extension stores, like the Firefox store, will ask developers to provide steps to build the extension package and require it to produce the exact same checksum as the ZIP that you submitted.
How can I build a ZIP for my extension that would always produce the exact same ZIP?
- Dominant language
- JavaScript
- Stars
- 3.1k
- Forks
- 386
- Avg merge
- 8h
- Merged PRs (30d)
- 19
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mozilla/web-ext
-
contrib: welcome
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
component: code quality
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 3/5 1-2 days Newbie friendliness 62/100
-
priority: enhancement
Difficulty 3/5 1-2 days Newbie friendliness 38/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·