Conversation
|
Same error; wonder if some dependency started to become more strict, or if we need to rewrite the commit to be semver(ish) (perhaps some Als no idea where |
|
Right, so So commit 9ad4bdd changed the Makefile to generate a version based on Lines 14 to 17 in b6464db On a local checkout of this repository, I get a valid semver(ish) output; git describe --match '[0-9]*' --dirty='.m' --always --tags
7.0.0-27-gb6464dbe
git describe --match '[0-9]*' --dirty='.m' --always --tags 2>/dev/null | sed -r 's/-([0-9]+)/.dev\1/' | sed 's/-/+/'
7.0.0.dev27+gb6464dbeHowever, GitHub "checkout action" does a shallow clone / doesn't do a full fetch;
mkdir foo && cd foo
git init
git remote add origin https://github.com/docker/docker-py
git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +55f1c003017f27fe0c0896acbf066a929c8d5653:refs/remotes/pull/3259/merge
git sparse-checkout disable
git config --local --unset-all extensions.worktreeConfig
git checkout --progress --force refs/remotes/pull/3259/merge
git log -1 --format='%H'
# 55f1c003017f27fe0c0896acbf066a929c8d5653And in that case, the result is just the commit-sha, no tags involved, so nothing semver(ish); it even fails; git describe --match '[0-9]*' --dirty='.m' --always --tags
55f1c00
git describe --match '[0-9]*' --dirty='.m' --always --tags 2>/dev/null | sed -r 's/-([0-9]+)/.dev\1/' | sed 's/-/+/'
55f1c00 |
|
Oh! Last PR merged was the one that made the change! So that one never ran with the changes! |
|
Hmm.. no that's not it; that PR also had a "commit-only" version; https://github.com/docker/docker-py/actions/runs/8485006285/job/23304280050
|
|
Hm... so the Before that PR above, the Dockerfile would use That would still make it a "unique" tag (prevent caching?) and make it a "valid" format? |
See docker#3259 attempts for more details Signed-off-by: Christopher Petito <47751006+krissetto@users.noreply.github.com>
Signed-off-by: Christopher Petito <47751006+krissetto@users.noreply.github.com>
1361c09 to
104c5c4
Compare




Carried from #3257 to try and avoid strange CI caching issues