You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where the CONST have to be replaced by actual values. For implementing this, look up how to get the current git commit, how to get the current unix time from your computer (https://www.unixtimestamp.com/), and finally look up how to fetch the git tag from a commit. (This assumes we use Semantic Versioning (https://semver.org/) and add them to our git tags.) If there is no git tag on the current commit, all three should be zero.
Also, if the commit is "dirty", i.e. there are local changes that git does not know about, the Python script should exit with error and tell the user to use a clean commit.
The text was updated successfully, but these errors were encountered:
All of our projects should contain automatically generated version control registers. This is probably easy to do in Python.
There is room for changes, but a suggestion for how it can be implemented is to generate a module like so:
where the
CONST
have to be replaced by actual values. For implementing this, look up how to get the current git commit, how to get the current unix time from your computer (https://www.unixtimestamp.com/), and finally look up how to fetch the git tag from a commit. (This assumes we use Semantic Versioning (https://semver.org/) and add them to our git tags.) If there is no git tag on the current commit, all three should be zero.Also, if the commit is "dirty", i.e. there are local changes that git does not know about, the Python script should exit with error and tell the user to use a clean commit.
The text was updated successfully, but these errors were encountered: