We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ad15d56 + 488791a commit 31dde70Copy full SHA for 31dde70
cache/remotecache/gha/gha.go
@@ -5,6 +5,7 @@ import (
5
"context"
6
"encoding/json"
7
"fmt"
8
+ "io"
9
"os"
10
"sync"
11
"time"
@@ -371,6 +372,13 @@ type readerAt struct {
371
372
desc ocispecs.Descriptor
373
}
374
375
+func (r *readerAt) ReadAt(p []byte, off int64) (int, error) {
376
+ if off >= r.desc.Size {
377
+ return 0, io.EOF
378
+ }
379
+ return r.ReaderAtCloser.ReadAt(p, off)
380
+}
381
+
382
func (r *readerAt) Size() int64 {
383
return r.desc.Size
384
0 commit comments