Skip Menu |
 

This queue is for tickets about the Perl-Version CPAN distribution.

Report information
The Basics
Id: 119447
Status: open
Priority: 0/
Queue: Perl-Version

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

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



Subject: Version comparison does not match version module behavior.
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-7039-1482622468-1853.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: 860
Download (untitled) / with headers
text/plain 860b
Consider test program: #!/usr/bin/perl use strict; use warnings; use version 0.77; use Perl::Version; use Test::More; my $v1 = 'v0.10.1_01'; my $v2 = 'v0.10.2'; is( Perl::Version->new( $v1 ) <=> $v2, version->parse( $v1 ) <=> $v2 ); done_testing; exit( 0 ); With version 0.9912, it passes: ok 1 1..1 With version 0.9913 (an later), it fails: not ok 1 # Failed test at test.t line 12. # got: '-1' # expected: '1' 1..1 # Looks like you failed 1 test of 1. version 0.9912 interprets 'v0.10.1_01' as 'v0.10.1.1' (+alpha flag), but version 0.9913 interprets it is 'v0.10.101' (+alpha flag). The change in version module is intentional (I guess it is because Perl interprets v-string v0.10.1_01 as v0.10.101) so it unlikely to be reverted. That means Perl::Version should adopt new version behavior to be compatible with version module.
MIME-Version: 1.0
X-Spam-Status: No, score=-6.007 tagged_above=-99.9 required=10 tests=[AWL=-0.008, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, FROM_OUR_RT=-4, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham
In-Reply-To: <rt-4.0.18-7039-1482622469-715.119447-4-0 [...] rt.cpan.org>
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-119447 [...] rt.cpan.org> <rt-4.0.18-7039-1482622469-715.119447-4-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Received: by 10.31.183.144 with SMTP id h138mr6871294vkf.48.1482630560229; Sat, 24 Dec 2016 17:49:20 -0800 (PST)
Message-ID: <CAPk17=4Y66feyH4j9uCYjD_Q1dR35yPdihqFsinCHbb5SXkh2Q [...] mail.gmail.com>
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -6.007
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 77E72240260 for <cpan-bug+Perl-Version [...] hipster.bestpractical.com>; Sat, 24 Dec 2016 20:49:46 -0500 (EST)
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 2tbkINOR3wHw for <cpan-bug+Perl-Version [...] hipster.bestpractical.com>; Sat, 24 Dec 2016 20:49:30 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id B5D50240137 for <bug-Perl-Version [...] rt.cpan.org>; Sat, 24 Dec 2016 20:49:29 -0500 (EST)
Received: (qmail 25147 invoked by alias); 25 Dec 2016 01:49:29 -0000
Received: from mail-vk0-f50.google.com (HELO mail-vk0-f50.google.com) (209.85.213.50) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Sat, 24 Dec 2016 17:49:24 -0800
Received: by mail-vk0-f50.google.com with SMTP id p9so190587676vkd.3 for <bug-Perl-Version [...] rt.cpan.org>; Sat, 24 Dec 2016 17:49:24 -0800 (PST)
Received: by 10.176.83.41 with HTTP; Sat, 24 Dec 2016 17:48:39 -0800 (PST)
Delivered-To: cpan-bug+Perl-Version [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #119447] Version comparison does not match version module behavior.
Return-Path: <brian.d.foy [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=jSx13EsZNVwn576pOr9vxLq6fhPluryxDtk9kZbavj4=; b=s9n5aM3Y+OWKyc58NymebnuiLlbZQZErnaAWqE8mahX+YVVOzgCrQv1R5x1DasoSFh LRzwEbCYHXa/SNkuoIc1ASKNCUyFWxR4R3V4mpJ+IcBSwdl3QskZDQg4XkrxdRIfZHPf RKnug4iKoR8Vb+QJCprUkwu3ns7IlXTC+aHssQgpGCWoMjZaDhddGiLMb5X5RqEwZyiU FhpfTNYSONEudHfLD8/Tkp+u/22LDsp03yXXYMQ38aDzeg1/irNsjN+8Xdfq87IZ2ox0 TVxDqLV6YGH7TK5cUcDq4YADvFWiOwbh0+TTVVRnvxDNjrePYCpkY7vcngxw9OeuS0cC thjw==
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+Perl-Version [...] hipster.bestpractical.com
X-RT-Mail-Extension: perl-version
X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=jSx13EsZNVwn576pOr9vxLq6fhPluryxDtk9kZbavj4=; b=fSOaSu3EfWMfuhyvOxMpcpT1wWpYz1w2mIHY2YP/Strcf8XdLqDApwnOdDnJRJbEQZ 74ob4OTeq2mmlbKcKIMoXAyVSlwzvXHDwsfUXgT3kbBufMLDt8Ar7Npwgu5dlUcdY4Kb 8jvOQQAXX7VU35aMwrZMRUO8azw+VIjS1sQhQzzRsJv/iTKquC1C9wabYE1O8a6oMH59 bl59a+9R+2MVLyHK/XROpTe0GqtFGY7WUFAdFSy8/ZT4Ie1gXrIacDnzAMhTALm/2gRy 8mtH57N/NHLB2HlpeKnxPswYs9oB54j+WTmvdNpzcFg3B4yVbW1nIxfQZslAsiOk8VCn dELw==
Date: Sat, 24 Dec 2016 17:48:39 -0800
X-Spam-Level:
To: bug-Perl-Version [...] rt.cpan.org
X-GM-Message-State: AIkVDXIA/U7pmUkDwd8v2nd3GKEZDM5Mdg7KnFx1oCE1lppCArrpTCdvfG+AyiUnqDfpTZtBEllk/v1mcvR3bw==
From: brian d foy <brian.d.foy [...] gmail.com>
RT-Message-ID: <rt-4.0.18-3087-1482630587-1768.119447-0-0 [...] rt.cpan.org>
Content-Length: 224
Download (untitled) / with headers
text/plain 224b
Noted, at it's at Christmas so I don't have time to look at this immediately. And, I think there's some work to do to decide if we should track version. There's a lot of pain there. If someone wants to submit a patch.... :)


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.