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

bam-readcount build from release source code zip/tarball does not have a version number #96

Open
apldx opened this issue Jan 19, 2022 · 0 comments

Comments

@apldx
Copy link
Collaborator

apldx commented Jan 19, 2022

If you download a release as a zip or tarball

wget https://github.com/genome/bam-readcount/archive/refs/tags/v1.0.1.tar.gz

and build it, running bam-readcount --version shows

bam-readcount version: unstable (commit nogit)

If you clone the tag for the release instead (ie, same source code)

git clone -b v1.0.1 --single-branch [email protected]:genome/bam-readcount

and build, the version is correct

bam-readcount version: 1.0.1 (commit e88e18b)

I think this is because as part of the build process,

build-common/bin/gitrev.pl

runs and tries to get the version from the Git tag list. Since the source zip/tarball do not have any Git information,
it has no way to parse a version and reports nogit.

@apldx apldx changed the title bam-readcount build from release source code zip/tarball doesnot have a version number when built bam-readcount build from release source code zip/tarball does not have a version number Jan 19, 2022
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

1 participant