]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
treewide: don't change `use VERSION' in the same scope
authorEric Wong <e@80x24.org>
Thu, 23 Oct 2025 23:23:07 +0000 (23:23 +0000)
committerEric Wong <e@80x24.org>
Sat, 25 Oct 2025 09:37:03 +0000 (09:37 +0000)
commit5fd8da2a3d4f1ba9d5939f29c16f3f81dcc94d2a
treecce167804050bd6c6878e9fc083bb8a3e4a2fb5c
parentf4216637323226efda96c91205b198676af47600
treewide: don't change `use VERSION' in the same scope

Perl v5.40 deprecates and warns about mismatching `use VERSION'
statements until v5.44, at which point it'll become fatal and
unsupported.  Multiple `package' statements in the same file are
considered the same scope by Perl, including string `eval' where
packages are declared within the string.

Furthermore, downgrading from v5.11+ to earlier versions is
already fatal in v5.42, at least.  It's explained somewhat
unsatisfactorily in perl5360delta(1)...

It appears Perl takes another step towards the path of Python
and Ruby of introducing incompatibilities for minor reasons :<

Reported-by: Kyle Meyer <kyle@kyleam.com>
Link: https://public-inbox.org/meta/87bjmawncx.fsf@kyleam.com/
lib/PublicInbox/Git.pm
lib/PublicInbox/TestCommon.pm