mesonbuild / mesonbuild/meson

`meson dist` not ignoring git metadata for subprojects.

Open
#14,005 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

dist
Dominant language
Python
Stars
6.6k
Forks
1.9k
Avg merge
2d 6h
Merged PRs (30d)
33

Description

Describe the bug
In the docs it is said that git metadata are stripped, but using --include-subprojects will copy subprojects with their git intact, which adds a significant weight in the final distribution.

To Reproduce
For example, check https://github.com/KaruroChori/vs-fltk/releases/tag/v0.1.1-alpha . The distributed file vs-fltk-0.1.1-alpha.tar.xz has git folder for its suprojectes.

Expected behavior
Git metadata should be stripped, or a flag should govern their presence.

system parameters
Using meson 1.6, the exact command is meson dist -C build/ --allow-dirty --no-tests --include-subprojects from the workflow here

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 with the meson dist -C build/ --allow-dirty --no-tests --include-subprojects command and the linked release workflow, then reproduce the archive contents with a subproject. Done means the distribution no longer includes subproject Git metadata, or a documented flag clearly controls whether it is included.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system, release
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.