Skip Menu |
 

This queue is for tickets about the lib-none CPAN distribution.

Report information
The Basics
Id: 94668
Status: resolved
Priority: 0/
Queue: lib-none

People
Owner: Nobody in particular
Requestors: haarg [...] haarg.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Emptying @INC should be done in import, not on load
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.18-25721-1397303448-1330.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 205
Download (untitled) / with headers
text/plain 205b
Loading a module but explicitly bypassing import (via `-mlib::none`, `use lib::none ();`, or `require lib::none;`) should not have side effects. Instead, emptying @INC should be done in the import method.
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-25721-1397303448-1330.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-25721-1397303448-1330.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-6730-1397314413-78.94668-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 295
Download (untitled) / with headers
text/plain 295b
On Sat Apr 12 07:50:48 2014, haarg wrote: Show quoted text
> Loading a module but explicitly bypassing import (via `-mlib::none`, > `use lib::none ();`, or `require lib::none;`) should not have side > effects. Instead, emptying @INC should be done in the import method.
Makes sense. Rectified in 0.02. Thanks.
MIME-Version: 1.0
X-Spam-Status: No, score=-4.698 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, FROM_OUR_RT=-2, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
In-Reply-To: <rt-4.0.18-25721-1397303448-446.94668-4-0 [...] rt.cpan.org>
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-94668 [...] rt.cpan.org> <rt-4.0.18-25721-1397303448-446.94668-4-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Received: by 10.194.191.195 with SMTP id ha3mr348362wjc.69.1397478953463; Mon, 14 Apr 2014 05:35:53 -0700 (PDT)
Message-ID: <CAOivSP-7i8mcm+=ELCtW-16iPGyqNWUHZvf3-o7LXuP820wT-A [...] mail.gmail.com>
Content-Type: multipart/alternative; boundary="047d7ba970bc9a340104f6ffece1"
X-Spam-Score: -4.698
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id B6C7424053A for <cpan-bug+lib-none [...] hipster.bestpractical.com>; Mon, 14 Apr 2014 08:36:01 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k1eTRSpbso12 for <cpan-bug+lib-none [...] hipster.bestpractical.com>; Mon, 14 Apr 2014 08:36:00 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 6BB13240428 for <bug-lib-none [...] rt.cpan.org>; Mon, 14 Apr 2014 08:36:00 -0400 (EDT)
Received: (qmail 19222 invoked by alias); 14 Apr 2014 12:35:59 -0000
Received: from mail-wi0-f175.google.com (HELO mail-wi0-f175.google.com) (209.85.212.175) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Mon, 14 Apr 2014 05:35:56 -0700
Received: by mail-wi0-f175.google.com with SMTP id cc10so3932928wib.8 for <bug-lib-none [...] rt.cpan.org>; Mon, 14 Apr 2014 05:35:53 -0700 (PDT)
Received: by 10.194.46.194 with HTTP; Mon, 14 Apr 2014 05:35:53 -0700 (PDT)
Delivered-To: cpan-bug+lib-none [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #94668] Emptying @INC should be done in import, not on load
Return-Path: <stevenharyanto [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=z0EGwABjA+2YGa7MqN9+yQGgbfv040kiAz4bHq9lRcY=; b=LkyI+PV+yDz3lTPD3UuFKMJhyZAEqxJFWOcg3GHbSJWYoQCYvgLgxThWbtvvdN/92u QfKCRj6JN/smXQsKG50LZV2VlNLb/tpgIpj6g7akNbkZMnHbRA/wMwHt7du20l9mzASi /G9FWCZEbCJ/UAtug72mmd1cVsl6Dd9gY7MbC5WkE9HH+zdYeD271QJ6PCeUVOhwBOxR YRo1IFiN0TrRWyryhpKhvFS0LiccPQxiq8p5uGVZvFHsPSKDMGp40GT0LBZxJu42QuO+ mBYhujSzr7U/52mRlmny87xfDweIP3ZN/sQzhnucB/Vg/x3FM0j/ClpJr26d3z/lw/Xn pc6A==
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+lib-none [...] hipster.bestpractical.com
X-RT-Mail-Extension: lib-none
Date: Mon, 14 Apr 2014 19:35:53 +0700
X-Spam-Level:
To: bug-lib-none [...] rt.cpan.org
From: Steven Haryanto <stevenharyanto [...] gmail.com>
RT-Message-ID: <rt-4.0.18-21115-1397478962-527.94668-0-0 [...] rt.cpan.org>
Content-Length: 0
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Content-Length: 852
Download (untitled) / with headers
text/plain 852b
It's because of Regexp::Grammar croak-ing under 5.18. 5.18 did famously broke RG; I've read somewhere that it's been fixed, but haven't checked into it yet. On Sat, Apr 12, 2014 at 6:50 PM, Graham Knop via RT < bug-lib-none@rt.cpan.org> wrote: Show quoted text
> Sat Apr 12 07:50:48 2014: Request 94668 was acted upon. > Transaction: Ticket created by haarg > Queue: lib-none > Subject: Emptying @INC should be done in import, not on load > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: haarg@haarg.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=94668 > > > > Loading a module but explicitly bypassing import (via `-mlib::none`, `use > lib::none ();`, or `require lib::none;`) should not have side effects. > Instead, emptying @INC should be done in the import method. >
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 1364
MIME-Version: 1.0
X-Spam-Status: No, score=-4.698 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, FROM_OUR_RT=-2, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
In-Reply-To: <CAOivSP-7i8mcm+=ELCtW-16iPGyqNWUHZvf3-o7LXuP820wT-A [...] mail.gmail.com>
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-94668 [...] rt.cpan.org> <rt-4.0.18-25721-1397303448-446.94668-4-0 [...] rt.cpan.org> <CAOivSP-7i8mcm+=ELCtW-16iPGyqNWUHZvf3-o7LXuP820wT-A [...] mail.gmail.com>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Received: by 10.180.96.225 with SMTP id dv1mr9553135wib.37.1397478982445; Mon, 14 Apr 2014 05:36:22 -0700 (PDT)
Message-ID: <CAOivSP_fZypNuU6DgOK0YWABwZkjwS+OM4WMMKibb+tzRES4ZQ [...] mail.gmail.com>
Content-Type: multipart/alternative; boundary="f46d04428a6c54725204f6ffeeae"
X-Spam-Score: -4.698
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 4F91E24053C for <cpan-bug+lib-none [...] hipster.bestpractical.com>; Mon, 14 Apr 2014 08:36:32 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w-8x-8d5qHq4 for <cpan-bug+lib-none [...] hipster.bestpractical.com>; Mon, 14 Apr 2014 08:36:30 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 61DE724053A for <bug-lib-none [...] rt.cpan.org>; Mon, 14 Apr 2014 08:36:30 -0400 (EDT)
Received: (qmail 19298 invoked by alias); 14 Apr 2014 12:36:28 -0000
Received: from mail-we0-f181.google.com (HELO mail-we0-f181.google.com) (74.125.82.181) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Mon, 14 Apr 2014 05:36:25 -0700
Received: by mail-we0-f181.google.com with SMTP id q58so7892898wes.40 for <bug-lib-none [...] rt.cpan.org>; Mon, 14 Apr 2014 05:36:22 -0700 (PDT)
Received: by 10.194.46.194 with HTTP; Mon, 14 Apr 2014 05:36:22 -0700 (PDT)
Delivered-To: cpan-bug+lib-none [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #94668] Emptying @INC should be done in import, not on load
Return-Path: <stevenharyanto [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=SkixscZRq5WGfgsx7LT9JfO3WhQE+4a9uJltEhAwrUE=; b=VXN3Fhp5knS+UptanRePluGRncSyigzvhVa/HhJZZot8tI6h/vRJLew3NtUSvhle89 3g2b4iDuNQDkMvsx++XVBQWf2ULoZQoTSaBK2VoSd5dfoI7K6fkwLIjsQC/4hS53tMBc 1daW72P1IHzDX7Xbwfl4HoPgL76QXKNmuwYOdXw6yuNnQkIeVPSqBE21xz/A/4/x/MT9 D0+yjDbNZYugkdmwHd+YakMvOp/jWCf5nlSze9jfKSgjA3KWrL3kYskmulkRvw1wOb96 fpN7V++ez2GQpwFE+3peQAUCeryzLzojtzSVqjNR3qeW8mGSBxrQnTUmz4U3zwNruvX3 yHiQ==
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+lib-none [...] hipster.bestpractical.com
X-RT-Mail-Extension: lib-none
Date: Mon, 14 Apr 2014 19:36:22 +0700
X-Spam-Level:
To: bug-lib-none [...] rt.cpan.org
From: Steven Haryanto <stevenharyanto [...] gmail.com>
RT-Message-ID: <rt-4.0.18-16815-1397478993-574.94668-0-0 [...] rt.cpan.org>
Content-Length: 0
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Content-Length: 1034
Sorry, ignore the previous email. Replied to the wrong thread. On Mon, Apr 14, 2014 at 7:35 PM, Steven Haryanto <stevenharyanto@gmail.com>wrote: Show quoted text
> It's because of Regexp::Grammar croak-ing under 5.18. 5.18 did famously > broke RG; I've read somewhere that it's been fixed, but haven't checked > into it yet. > > > > On Sat, Apr 12, 2014 at 6:50 PM, Graham Knop via RT < > bug-lib-none@rt.cpan.org> wrote: >
>> Sat Apr 12 07:50:48 2014: Request 94668 was acted upon. >> Transaction: Ticket created by haarg >> Queue: lib-none >> Subject: Emptying @INC should be done in import, not on load >> Broken in: (no value) >> Severity: (no value) >> Owner: Nobody >> Requestors: haarg@haarg.org >> Status: new >> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=94668 > >> >> >> Loading a module but explicitly bypassing import (via `-mlib::none`, `use >> lib::none ();`, or `require lib::none;`) should not have side effects. >> Instead, emptying @INC should be done in the import method. >>
> >
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 1885


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.