Commit Graph

5 Commits

Author SHA1 Message Date
Marcin Rataj
bbefaea82e fix(version): produce shorter user agent for tagged release builds
when building from a version-tagged commit with a clean tree, omit the
redundant git commit hash from the libp2p user agent string, saving
bytes in HTTP requests and libp2p identify. `ipfs version --commit`
still reports the full commit hash.

before (tagged release): kubo/0.37.0/6898472
after  (tagged release): kubo/0.37.0

non-tagged and dirty builds are unaffected.
2026-02-19 01:31:03 +01:00
Steven Allen
aba6c3d2f8 build: fix build when we don't have a full git tree
When building with docker, we don't have a _full_ git repo.
2019-09-04 13:37:20 -07:00
Jakub Sztandera
c8c0c48e2d mk: change git-hash command to include information about modifications
With this command we will get hash information as well as information if
build was made using uncommited files.

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-03-07 00:42:19 +01:00
Dominic Della Valle
317bc20f47 mk: fix commit string in version
License: MIT
Signed-off-by: Dominic Della Valle <ddvpublic@gmail.com>
2018-04-26 11:48:44 -04:00
Jakub Sztandera
2535220864 mk: add tarball support
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-04-05 19:18:22 +02:00