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.

vcs export --exact reports tag names instead of commit hash

See original GitHub issue

Version: vcs 0.2.4

How to Reproduce: Run vcs export --exact on a set of repos.

Expected behavior: The version field of each repo will report the exact commit hash like this:

  src/ros2/rclpy:
    type: git
    url: https://github.com/ros2/rclpy.git
    version: 76d26a125da7f9df19ba35beb60cb16838019a10

Actual Behavior: Frequently the hash is replaced by a tag name.

  src/ros2/rcl_interfaces:
    type: git
    url: https://github.com/ros2/rcl_interfaces.git
    version: 0.8.0

I think when the --exact parameter is specified, it is preferable to provide the commit hash.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
crdelseycommented, Dec 3, 2019

Yeah. I can take a stab at it. Probably next week.

I haven’t looked at the codebase much yet, so I’m not sure if this makes sense.

But rather than changing all the backends, I could have the command line parser split the --exact-with-tags convenience option into two separate options on the command object: the existing .exact and a .with_tags. All the other backends would ignore the with_tags flag and maintain the same behavior.

0reactions
dirk-thomascommented, Jan 10, 2020

Resolved by #115.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Commits are snapshots, not diffs - The GitHub Blog
I'll be using the git/git repository checked out at v2.29.2 as an example. Follow along with my command-line examples for extra practice. Object ......
Read more >
Artifactory: How to download a git version specified by the ...
How can I download a repo version specified by its hash? I can easily download the head of a branch by using Artifactory's...
Read more >
Embedding Git Commit Information in Go Binaries - Icinga
This blog post shows different techniques that can be used to embed a Git commit hash into programs written in the Go programming...
Read more >
Advanced Git Log | Atlassian Git Tutorial
Branches, tags, HEAD , and the commit history are almost all of the information contained in your Git repository, so this gives you...
Read more >
git-describe - man pages section 1: User Commands
Git Manual GIT-DESCRIBE(1) NAME git-describe - Show the most recent tag that is ... --tags Instead of using only the annotated tags, use...
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