Skip to content

Exclude only .git/config in docker image#1251

Merged
takanabe merged 1 commit intomainfrom
tw-hotfix
Mar 6, 2026
Merged

Exclude only .git/config in docker image#1251
takanabe merged 1 commit intomainfrom
tw-hotfix

Conversation

@takanabe
Copy link
Contributor

@takanabe takanabe commented Mar 6, 2026

Background

The Docker image build failed due to inaccessibility to git metadata (https://github.com/cloudbees-oss/smart-tests-cli/actions/runs/22746565125/job/65971559165) because setuptools-scm needs git metadata for package builds. So, we will contain .git except for .git/config

See pypa/setuptools-scm#1103

Change

  • Exclude only .git/config instead of the entire .git from docker images.

setuptools-scm needs git metadata for package builds.
So, we will contain .git except for .git/config

See pypa/setuptools-scm#1103
@takanabe takanabe requested review from Konboi and ono-max March 6, 2026 06:02
@takanabe takanabe merged commit 3cde361 into main Mar 6, 2026
2 checks passed
@takanabe takanabe deleted the tw-hotfix branch March 6, 2026 06:24
@github-actions github-actions bot mentioned this pull request Mar 6, 2026
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.

2 participants