6 Star 0 Fork 6

src-openEuler/perl-Module-Manifest-Skip

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Module-Manifest-Skip-0.23-Adapt-to-changes-in-Moo-2.004000.patch 1.36 KB
一键复制 编辑 原始数据 按行查看 历史
From 18e36d68c1c7b6db2a4fe51482e2f46107e764c6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <[email protected]>
Date: Tue, 21 Apr 2020 08:01:21 +0200
Subject: [PATCH] Adapt to changes in Moo 2.004000
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Moo-2.004000 refactored "creation and installation of helper subs" and
as a result a direct Moo::import execution stopped working and
Module-Manifest-Skip tests either:
t/create.t .............. Can't locate object method "_install_subs" via package "Module::Manifest::Skip" at /usr/share/perl5/vendor_perl/Moo.pm line 47.
BEGIN failed--compilation aborted at t/TestModuleManifestSkip.pm line 6.
Compilation failed in require at t/create.t line 3.
Because Moo::import() is already executed when Module::Manifest::Skip does "use
Moo;", the simplest fix is to stop calling it again.
https://github.com/ingydotnet/module-manifest-skip-pm/issues/7
Signed-off-by: Petr Písař <[email protected]>
---
lib/Module/Manifest/Skip.pm | 3 ---
1 file changed, 3 deletions(-)
diff --git a/lib/Module/Manifest/Skip.pm b/lib/Module/Manifest/Skip.pm
index 434f7ce..27c1ac7 100644
--- a/lib/Module/Manifest/Skip.pm
+++ b/lib/Module/Manifest/Skip.pm
@@ -28,9 +28,6 @@ sub import {
close MS;
exit;
}
- else {
- goto &Moo::import;
- }
}
sub add {
--
2.21.2
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/perl-Module-Manifest-Skip.git
[email protected]:src-openeuler/perl-Module-Manifest-Skip.git
src-openeuler
perl-Module-Manifest-Skip
perl-Module-Manifest-Skip
master

搜索帮助