Skip to content

Perl: move !Build/ after Build so the directory is not ignored - #4920

Open
kwy404 wants to merge 1 commit into
github:mainfrom
kwy404:perl-build-dir
Open

kwy404 wants to merge 1 commit into
github:mainfrom
kwy404:perl-build-dir

Conversation

@kwy404

@kwy404 kwy404 commented Sep 24, 2026

Copy link
Copy Markdown

Link to the application or project's homepage

https://metacpan.org/pod/Module::Build

Reasons for making this change

!Build/ was added right after Build so that a directory named Build is not ignored, only the Build script that perl Build.PL generates. When the template was reorganized into sections, !Build/ ended up on the first line, before Build, and since the last matching pattern wins it no longer has any effect. This moves it back under Build in the Module::Build section; with git check-ignore -v, Build/x.pm is no longer ignored while the Build file still is.

Links to documentation supporting these rule changes

Merge and Approval Steps

@kwy404
kwy404 requested a review from a team as a code owner September 24, 2026 08:06

@ArshVermaGit ArshVermaGit left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense — putting !Build/ after Build lets git properly un-ignore the directory so Module::Build works as expected. LGTM!

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