Open mloskot opened 1 month ago
The git rev-parse --short HEAD below resolves to Git hash
git rev-parse --short HEAD
https://github.com/mccutchen/go-httpbin/blob/34a21a3ef81df5aa42185fcae2e5a608404ac6a0/Makefile#L3-L4
Shouldn't the VERSION be based on Git tag, that is, git describe --tags --abbrev=0?
VERSION
git describe --tags --abbrev=0
This makes me wonder, is this VERSION actually used for the image tagging?
Perhaps Docker images are tagged following this instruction?
https://github.com/mccutchen/go-httpbin/blob/34a21a3ef81df5aa42185fcae2e5a608404ac6a0/DEVELOPMENT.md?plain=1#L93-L95
If my understanding is correct and there is room for improvement indeed, I can propose PR.
The
git rev-parse --short HEAD
below resolves to Git hashhttps://github.com/mccutchen/go-httpbin/blob/34a21a3ef81df5aa42185fcae2e5a608404ac6a0/Makefile#L3-L4
Shouldn't the
VERSION
be based on Git tag, that is,git describe --tags --abbrev=0
?This makes me wonder, is this
VERSION
actually used for the image tagging?Perhaps Docker images are tagged following this instruction?
https://github.com/mccutchen/go-httpbin/blob/34a21a3ef81df5aa42185fcae2e5a608404ac6a0/DEVELOPMENT.md?plain=1#L93-L95
If my understanding is correct and there is room for improvement indeed, I can propose PR.