forgejo/routers/api/packages/container
oliverpool d84a5217ee Update module github.com/minio/minio-go/v7 to v7.0.95 (#8816)
Fixes #8529, supersedes #8597
Reverts the workaround of #8541 (while keeping the test) and ignore Close error (like #8527 did).

https://github.com/minio/minio-go/pull/2137 makes the test pass without the `io.NopCloser`:

```
docker run --rm -e MINIO_DOMAIN=minio -e MINIO_ROOT_USER=123456 -e MINIO_ROOT_PASSWORD=12345678 -p 9000:9000  data.forgejo.org/oci/bitnami/minio:2024.8.17
```

```
TEST_MINIO_ENDPOINT=localhost:9000  go test -v -run ^TestMinioStorageIterator$ ./modules/storage
```

Wrapping the `io.Reader` in an `io.NopCloser` also hides all other methods (like `WriteTo` or `Seek`), so is not ideal.

As a further "line of defense", the Close error is ignored (if saveAsPackageBlob was succesful, we don't really care if Close fails).

Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8816
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: oliverpool <git@olivier.pfad.fr>
Co-committed-by: oliverpool <git@olivier.pfad.fr>
2025-08-10 10:17:55 +02:00
..
auth.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
blob.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
container.go Update module github.com/minio/minio-go/v7 to v7.0.95 (#8816) 2025-08-10 10:17:55 +02:00
container_test.go feat: support artifact uploads for OCI container packages (#8070) 2025-06-09 10:14:53 +02:00
errors.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
manifest.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00