This queue is for tickets about the Module-Starter-PBP CPAN distribution.

Report information
The Basics
Id:
41550
Status:
new
Priority:
Low/Low

People
Owner:
Nobody in particular
Requestors:
Olivier.Valuet [...] compuware.com
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



X-Originalarrivaltime: 08 Dec 2008 18:19:12.0149 (UTC) FILETIME=[78488C50:01C95961]
MIME-Version: 1.0
X-Spam-Status: No, hits=0.0 required=8.0 tests=HTML_MESSAGE
Content-Class: urn:content-classes:message
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
Importance: normal
Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C95961.77BC43DE"
X-MS-Tnef-Correlator:
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 0120D4D8041 for <bug-module-starter-pbp@rt.cpan.org>; Mon, 8 Dec 2008 13:19:43 -0500 (EST)
Received: (qmail 14192 invoked by uid 103); 8 Dec 2008 18:19:42 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 8 Dec 2008 18:19:42 -0000
Received: from mx1.compuware.com (HELO mx1.compuware.com) (12.107.188.150) by 16.mx.develooper.com (qpsmtpd/0.43rc1) with ESMTP; Mon, 08 Dec 2008 10:19:38 -0800
Received: from nasa-dtw-ex009.nasa.cpwr.corp (unknown [10.10.0.230]) by mx1.compuware.com (Postfix) with ESMTP id 11D1E72D6A2 for <bug-module-starter-pbp@rt.cpan.org>; Mon, 8 Dec 2008 18:19:12 +0000 (GMT)
Received: from nasa-yul-ex001.nasa.cpwr.corp ([172.22.174.37]) by nasa-dtw-ex009.nasa.cpwr.corp with Microsoft SMTPSVC(6.0.3790.1830); Mon, 8 Dec 2008 13:19:12 -0500
Delivered-To: cpan-bug+module-starter-pbp@diesel.bestpractical.com
Subject: glob under cygwin
Return-Path: <Olivier.Valuet@compuware.com>
Thread-Index: AclZYXcxYz8GdCxvTMG6w2IS5iRJ3A==
X-Original-To: bug-module-starter-pbp@rt.cpan.org
X-Spam-Check-BY: 16.mx.develooper.com
Date: Mon, 8 Dec 2008 13:19:10 -0500
X-Spam-Level: *
Thread-Topic: glob under cygwin
X-MS-Has-Attach:
Message-Id: <F5E17F858D21DE49A70318CC9EEC8A3503C20058@nasa-yul-ex001.nasa.cpwr.corp>
X-Mimeole: Produced By Microsoft MimeOLE V6.00.3790.2757
To: <bug-module-starter-pbp@rt.cpan.org>
Priority: normal
Content-Transfer-Encoding: 7bit
From: "Valuet, Olivier" <Olivier.Valuet@compuware.com>
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: us-ascii
Content-Length: 2265
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: us-ascii
Content-Length: 4204

hi there,

i tried to use Module::Starter::PBP under cygwin.

i got the following warning:
        $ module-starter --module=My::Module
        The Module::Starter::PBP template: t//cygdrive/c/Documents isn't in the template directory (/cygdrive/c/Documents and Settings/myspace/.module-starter/PBP)

i put some logs:
        $ module-starter --module=My::Module --force
        rel: [Module.pm]
        abs: [/cygdrive/c/Documents and Settings/bmooxv0/.module-starter/PBP/Module.pm]
        file from glob: /cygdrive/c/Documents
        file from glob: and
        test file: /cygdrive/c/Documents
        rel: [t//cygdrive/c/Documents]
        abs: [/cygdrive/c/Documents and Settings/bmooxv0/.module-starter/PBP/t//cygdrive/c/Documents]
        The Module::Starter::PBP XXX template: t//cygdrive/c/Documents isn't in the template directory (/cygdrive/c/Documents and Settings/bmooxv0/.module-starter/PBP)

in sub t_guts, i fixed the issue by double-quoting the template_dir around line 80 (i could not find an option for glob to take care of it):

for my $test_file ( map { s{\A .*/t/}{}xms; $_; } glob "$self->{template_dir}/t/*") {

=>

for my $test_file ( map { s{\A .*/t/}{}xms; $_; } glob qq{"$self->{template_dir}"/t/*}) {

I could then run the script to its end (logs removed):

$ module-starter --module=My::Module --force
Created starter directories and files

i am not recorded in cpan and I do not know if there is a code repository for that module, then only that email as indicated in the pod documentation.

thx for that module and the book pbp.

regards,
olivier valuet


Le contenu de ce courriel s'adresse au destinataire seulement. Il contient de l'information pouvant être confidentielle. Vous ne devez ni le copier ni l'utiliser ni le divulguer à qui que ce soit à moins que vous soyez le destinataire ou une personne désignée autorisée. Si vous le receviez par erreur, veuillez nous aviser immédiatement et le détruire.

 

The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.
 



This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

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