0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-27 05:34:26 +01:00
gitea/modules/packages
KN4CK3R a1ae83f36e
Workaround for container registry push/pull errors (#21862)
This PR addresses #19586

I added a mutex to the upload version creation which will prevent the
push errors when two requests try to create these database entries. I'm
not sure if this should be the final solution for this problem.

I added a workaround to allow a reupload of missing blobs. Normally a
reupload is skipped because the database knows the blob is already
present. The workaround checks if the blob exists on the file system.
This should not be needed anymore with the above fix so I marked this
code to be removed with Gitea v1.20.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-11-25 13:47:46 +08:00
..
composer
conan
container Fix empty container layer history and UI (#21251) 2022-09-27 15:03:24 +02:00
helm Replace yaml.v2 with yaml.v3 (#21832) 2022-11-21 16:36:59 +08:00
maven
npm npm package registry support for bin (#21372) 2022-10-08 13:24:44 +08:00
nuget Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2022-10-24 20:29:17 +01:00
pub Replace yaml.v2 with yaml.v3 (#21832) 2022-11-21 16:36:59 +08:00
pypi
rubygems Replace yaml.v2 with yaml.v3 (#21832) 2022-11-21 16:36:59 +08:00
vagrant Fix various typos (#21103) 2022-09-07 14:40:36 -04:00
content_store.go Workaround for container registry push/pull errors (#21862) 2022-11-25 13:47:46 +08:00
hashed_buffer.go
hashed_buffer_test.go
multi_hasher.go
multi_hasher_test.go