forgejo/models/packages
Earl Warren 181d402960 fix: package_blob.has_blake2b may be null (#7520)
- When looking for an existing blob, has_blake2b will be null when it was created prior to v26 migration in v11, when the field was introduced.
- Add unit test and minimal refactoring to load fixtures. The AddFixture function should not be where it currently is because it cannot be used by some packages (circular import). But that's a refactor that needs to be elsewhere for backporting purposes.

Fixes https://codeberg.org/forgejo/forgejo/issues/7519
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>

(cherry picked from commit eb85681b41)
2025-04-11 12:28:49 +00:00
..
alpine [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
alt [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
conan [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
conda [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
container [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
cran [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
debian [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
nuget [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
rpm [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
descriptor.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
main_test.go fix: package_blob.has_blake2b may be null (#7520) 2025-04-11 12:28:49 +00:00
package.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
package_blob.go fix: package_blob.has_blake2b may be null (#7520) 2025-04-11 12:28:49 +00:00
package_blob_test.go fix: package_blob.has_blake2b may be null (#7520) 2025-04-11 12:28:49 +00:00
package_blob_upload.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
package_cleanup_rule.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
package_file.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
package_property.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
package_test.go fix: package_blob.has_blake2b may be null (#7520) 2025-04-11 12:28:49 +00:00
package_version.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00