-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hotfix for requests 2.32.2 #3259
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+gb6464dbe However, 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'
# 55f1c003017f27fe0c0896acbf066a929c8d5653 And 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 <[email protected]>
Signed-off-by: Christopher Petito <[email protected]>
1361c09
to
104c5c4
Compare
Carried from #3257 to try and avoid strange CI caching issues