nextcloud / nextcloud/server

composer v2 files are not always reproducible

Open
#26,711 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop technical debt
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

E.g. hashes change at arbitrary times. Like locally you commit, then rebuild and there will be hash diffs. Then you amend, rebuild and see the same changes. If you just build twice the hashes will be equal.

🤯

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Composer v2 build described in the issue: compare hashes after committing, rebuilding, amending, and rebuilding again. The issue names no files or tests, so trace the Composer build and packaging entry points to identify the source of nondeterminism. Done means repeated builds produce identical hashes.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.