Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version: v3.0.35-src vs 1.3.2 #353

Open
serge2016 opened this issue Nov 26, 2024 · 1 comment
Open

Version: v3.0.35-src vs 1.3.2 #353

serge2016 opened this issue Nov 26, 2024 · 1 comment

Comments

@serge2016
Copy link

Hello!

I recently built current version from src with following commands:

export SOFT="~/soft"
mkdir -p "$SOFT"

export INTEROP_VERSION="1.3.2"
cd "$SOFT" \
    && wget -q "https://github.com/Illumina/interop/archive/refs/tags/v${INTEROP_VERSION}.tar.gz" -O "$SOFT/interop-${INTEROP_VERSION}.tar.gz" \
    && tar -xzf "$SOFT/interop-${INTEROP_VERSION}.tar.gz" \
    && mv "$SOFT/interop-${INTEROP_VERSION}" "$SOFT/interop-${INTEROP_VERSION}_src" \
    && mkdir -p "$SOFT/interop-${INTEROP_VERSION}_src/build" \
    && cd "$SOFT/interop-${INTEROP_VERSION}_src/build" \
    && cmake .. -DCMAKE_INSTALL_PREFIX="$SOFT/interop-${INTEROP_VERSION}" \
    && cmake --build . -j"$(($(nproc)+1))" \
    && cmake --build . --target install

Now when I run:

bio@bisa10:~$ summary
# Version: v3.0.35-src

bio@bisa10:~$ which summary
/home/bio/soft/interop-1.3.2/bin/summary

So why do I get v3.0.35-src instead of 1.3.2?

@ezralanglois
Copy link
Member

We use git to determine the version. When git fails, we provide a fallback version v3.0.35-src.

So, either you

  1. downloaded and built from the source archive
  2. Git failed to get the current version

We chose this mechanism because it:

  1. Let's us know whether the code has changed (assuming git works)
  2. Prevents accidentally getting the version wrong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants