You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/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>
2 years ago
..
composer Add Package Registry (#16510) 2 years ago
conan Allow non-semver packages in the Conan package registry (#20412) 2 years ago
container Fix empty container layer history and UI (#21251) 2 years ago
helm Replace yaml.v2 with yaml.v3 (#21832) 2 years ago
maven Add Package Registry (#16510) 2 years ago
npm npm package registry support for `bin` (#21372) 2 years ago
nuget Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
pub Replace yaml.v2 with yaml.v3 (#21832) 2 years ago
pypi Add Package Registry (#16510) 2 years ago
rubygems Replace yaml.v2 with yaml.v3 (#21832) 2 years ago
vagrant Fix various typos (#21103) 2 years ago
content_store.go Workaround for container registry push/pull errors (#21862) 2 years ago
hashed_buffer.go Add Package Registry (#16510) 2 years ago
hashed_buffer_test.go Fix package upload for files >32mb (#20622) 2 years ago
multi_hasher.go Add more linters to improve code readability (#19989) 2 years ago
multi_hasher_test.go Add Package Registry (#16510) 2 years ago