I'm doing an experimental install of some of the CancerIT tools right now (on behalf of a researcher -- not intending to use it myself), and I got to ascatNgs (using release 4.1.0). Running the setup gives:
$ ./setup.sh ../prefix
App::cpanminus is up to date. (1.7043)
/home/uccaiki/Scratch/CancerIT-login05/prefix/bin/cpanm
PREREQUISITE: Please install alleleCount version >= 3.3.0 before proceeding (Found version 3.3.1):
https://github.com/cancerit/alleleCount/releases
So, it's complaining that 3.3.1 is less than 3.3.0?
Looking at the way the check result is determined, it looks like the result is the wrong way around:
version_gt ()
{
test $(printf '%s\n' $@ | sort -V | head -n 1) == "$1"
}
### This is bash, so 0 is success/true, 1 is fail/false
$ version_gt 1 2; echo $?
0
$ version_gt 3 2; echo $?
1
$ version_gt 2 2; echo $?
0
So currently it's checking whether the version is less than or equal to.
The check in setup.sh has the obtained version as the first argument, and the required version as the second, so if the version is sufficient, it fails...
I'm having a little trouble understanding how this error got here: surely it would have turned up at some point?
I'm doing an experimental install of some of the CancerIT tools right now (on behalf of a researcher -- not intending to use it myself), and I got to ascatNgs (using release 4.1.0). Running the setup gives:
So, it's complaining that 3.3.1 is less than 3.3.0?
Looking at the way the check result is determined, it looks like the result is the wrong way around:
So currently it's checking whether the version is less than or equal to.
The check in
setup.sh
has the obtained version as the first argument, and the required version as the second, so if the version is sufficient, it fails...I'm having a little trouble understanding how this error got here: surely it would have turned up at some point?