Skip to content

chore: exclude repo-only files from the source archive - #3197

Merged
kevinjqliu merged 2 commits into
apache:0.11.xfrom
dannycjones:backport-0.11.x-source-archive
Sep 10, 2026
Merged

kevinjqliu merged 2 commits into
apache:0.11.xfrom
dannycjones:backport-0.11.x-source-archive

Conversation

@dannycjones

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Backports two changes from main (#3189, #3193) to remove unecessary files from git archive, used in the release process.

Related: #3034

What changes are included in this PR?

This change adds new entries to the .gitattributes file to exclude them when git archive is run.

Are these changes tested?

N/A

AI Disclosure

LLM was used to help draft the backport commit for 0.11.x branch.

kevinjqliu and others added 2 commits September 10, 2026 19:14
The release tarball is built with git archive and ships .asf.yaml,
.devcontainer, .github, .gitignore, .gitattributes, and .idea, none of
which are needed to build, test, or verify from source. Ryan raised this
in the 0.2.0 vote and Kurtis called out .idea in the 0.9.1 vote.

Files the verification scripts rely on (.licenserc.yaml, lint configs,
dev/) stay in.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
(cherry picked from commit d6c2eb4)
`.github export-ignore` (apache#3189) hides `.github/actions` from repository
archives. GitHub resolves the `uses: ./...` self-repository references by
fetching such an archive, so every workflow that uses a local composite
action fails at action resolution:

  Can't find 'action.yml', 'action.yaml' or 'Dockerfile' for action
  'apache/iceberg-rust/.github/actions/setup-builder@<sha>'

List the .github entries individually instead, so the repo-only files
apache#3189 targeted stay out of the release tarball while `.github/actions`
remains resolvable. A `-export-ignore` negation on the subdirectory does
not work: git does not descend into an export-ignored directory.

(cherry picked from commit 6f062aa)
@kevinjqliu
kevinjqliu merged commit e5e29ee into apache:0.11.x Sep 10, 2026
2 checks passed
@dannycjones
dannycjones deleted the backport-0.11.x-source-archive branch September 10, 2026 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants