lucy-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Wellnhofer (JIRA)" <j...@apache.org>
Subject [lucy-issues] [jira] [Updated] (CLOWNFISH-70) Export major version from Perl bindings
Date Sat, 06 Feb 2016 16:09:39 GMT

     [ https://issues.apache.org/jira/browse/CLOWNFISH-70?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Nick Wellnhofer updated CLOWNFISH-70:
-------------------------------------
    Fix Version/s: 0.5.0

> Export major version from Perl bindings
> ---------------------------------------
>
>                 Key: CLOWNFISH-70
>                 URL: https://issues.apache.org/jira/browse/CLOWNFISH-70
>             Project: Apache Lucy-Clownfish
>          Issue Type: Improvement
>          Components: Perl
>            Reporter: Nick Wellnhofer
>            Assignee: Nick Wellnhofer
>             Fix For: 0.5.0
>
>
> The Perl bindings for a Clownfish parcel should export the major version, so dependent
parcels can die with a meaningful error message if they find a newer and incompatible major
version.
> For now, I'd propose to implement a manual check. In Clownfish.pm, we could have something
like:
> {noformat}
> our $MAJOR_VERSION = 0.005000;
> {noformat}
> And in a dependent parcel like Lucy, something like:
> {noformat}
> use Clownfish 0.005000;
> BEGIN {
>     die <<"EOF" if $Clownfish::MAJOR_VERSION > 0.005000;
> This version of Lucy doesn't support Clownfish $Clownfish::MAJOR_VERSION or higher.
> You should downgrade Clownfish or, if possible, upgrade Lucy.
> EOF
> }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message