lucy-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Wellnhofer (JIRA)" <>
Subject [lucy-issues] [jira] [Created] (CLOWNFISH-70) Export major version from Perl bindings
Date Sat, 06 Feb 2016 14:37:39 GMT
Nick Wellnhofer created CLOWNFISH-70:

             Summary: Export major version from Perl bindings
                 Key: CLOWNFISH-70
             Project: Apache Lucy-Clownfish
          Issue Type: Improvement
          Components: Perl
            Reporter: Nick Wellnhofer
            Assignee: Nick Wellnhofer

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, we could have something

our $MAJOR_VERSION = 0.005000;

And in a dependent parcel like Lucy, something like:

use Clownfish 0.005000;
    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.

This message was sent by Atlassian JIRA

View raw message