question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

version: development version not showing the latest git commit hash

See original GitHub issue

I tried installing DVC with the help of guide in command-reference. Also from user-guide

dvc_code But the output is not the same as described the version command reference. dvc_version

Development version: pip install git+git://github.com/iterative/dvc will install DVC using the master branch of DVC’s repository. Another way of setting up the development version is to clone the repository and run pip install . . The master branch is continuously being updated with changes which might not be ready to publish yet. Therefore installing using the above command might have issues regarding its usage. So to trace any error reported with this setup, we need to know exactly which version is being used. For this, we rely on git commit hash which is displayed in output as 0.40.2+292cab.mod. The part before + is the BASE_VERSION and the latter part is the git commit hash which is one of the commits in the master branch (also, optional suffix .mod means that code is modified).

But, in my Windows machine, it is working fine. dvc_version_windows

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
shchekleincommented, Jul 14, 2019

@ryokugyu closing this since we failed to reproduce. Please, try to provide a clear instruction on how we can do this if it’s still an existing issue.

0reactions
ghostcommented, Jun 24, 2019

@ryokugyu , I also couldn’t reproduce it, here are my steps:

#!/usr/bin/env bash
git clone https://github.com/iterative/dvc.git
cd dvc
virtualenv --python=/usr/bin/python2 .venv
source .venv/bin/activate
pip install .
dvc version

As @shcheklein mentioned, you may have two conflicting versions of DVC (for example, one installed with apt-get or pip install dvc and the other one with git clone ... && pip install .)

Maybe you can pip uninstall dvc and check if which dvc outputs anything, if so, you need to also remove the other version.

Hope it helps 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I get the hash for the current commit in Git?
To turn any extended object reference into a hash, use git-rev-parse : git rev-parse HEAD. or git rev-parse --verify HEAD. To retrieve the...
Read more >
Why Git won't easily enable programs to output their version ...
If I understand correctly there is no built-in functionality in Git to simply let the program output which version or which commit hash...
Read more >
git-show Documentation - Git
The raw format shows the entire commit exactly as stored in the commit object. Notably, the hashes are displayed in full, regardless of...
Read more >
Commit exists on GitHub but not in my local clone
Sometimes a commit will be viewable on GitHub, but will not exist in your local clone of the repository. When you use git...
Read more >
IntelliJ IDEA - Investigate changes in Git repository - JetBrains
icon on the toolbar or press Ctrl+F and specify a commit hash, tag or the name ... Git tool window Alt+9 and choose...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found