forgejo/models/packages
Earl Warren eb85681b41 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>
2025-04-11 12:28:03 +00:00
..
alpine chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
alt chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
conan chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
conda chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
container chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
cran chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
debian chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
nuget chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
rpm chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
descriptor.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
main_test.go fix: package_blob.has_blake2b may be null (#7520) 2025-04-11 12:28:03 +00:00
package.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
package_blob.go fix: package_blob.has_blake2b may be null (#7520) 2025-04-11 12:28:03 +00:00
package_blob_test.go fix: package_blob.has_blake2b may be null (#7520) 2025-04-11 12:28:03 +00:00
package_blob_upload.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
package_cleanup_rule.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
package_file.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
package_property.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
package_test.go fix: package_blob.has_blake2b may be null (#7520) 2025-04-11 12:28:03 +00:00
package_version.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00