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.

Discussion point; Git tags

See original GitHub issue

Hi!

I found this post by @jzabroski, where he states;

I don’t think tags are a good idea. Next step would be to adopt either GitVersion, GitInfo, or Nerdbank.GitVersioning for predictable, consistent build version numbers. (…)

I’ve got no argument with a .NET-friendly versioning tool being the “go-to”. Or even that it ends up being utilized for that matter.

And even in conjunction with such a tool, I’m unsure why Git tags would be a bad idea?

My thoughts on the matter

There’s absolutely no technical limitations1 as to what a tag might consist of (the string of it that is). So you may very well have multiple tags pointing at the same commit, like;

  • x.y.z-alpha
  • x.y.z-beta
  • x.y.z-rc1
  • x.y.z-rc2
  • x.y.z

The idea however, that you (the authors) say2;

We validate **this** specific version (read: commit),
as the one representing the source code,
at a point we'd recommend/want others to use.

is one that I for one would value. This is independent of the versioning scheme (and semantics) that you guys could want/decide upon.

1: In the semantic sense - I guess one could always find some security-hole á la SQL Injection. 2: Through Git’s own tooling - read: tags.

Post-thought addendums

PS: And at no point would I imagine my reasoning/suggestions here to conflict with any preferences of an automated versioning/deploy/integration -tool (as long as you - the users of that tool - are in control of it), and it doesn’t lock down/limit your semantic use of tags.

PPS: For what it’s worth, the above described semantic usage of git tags are also what one of the original, biggest (in open source), and maybe even canonical source code projects - the Linux kernel - itself uses.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
jzabroskicommented, Jan 15, 2020

I started adding git tags since they’re defacto created/maintained when doing GitHub releases.

0reactions
x10an14commented, Jun 16, 2021

Glad to hear I could help/have a potentially positive influence =)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Git - git-tag Documentation
Only list tags whose commits are not reachable from the specified commit ( HEAD if not specified). --points-at <object>. Only list tags of...
Read more >
git tag | Atlassian Git Tutorial
This document will discuss the Git concept of tagging and the git tag command. Tags are ref's that point to specific points in...
Read more >
What exactly does a git tag point to?
An ordinary tag is just a name for a specific Git object, which is usually a commit but can be a tree, a...
Read more >
The Point of Tags? : r/git
What's the point of Git tags? I'm using semantic versioning, that already marks my code changes with version numbers. Git tags to me...
Read more >
Lets start tagging!
A git tag refers to a specific point in time in Git history of your repository. Though I mention as “specific point in...
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