internal/pkg: expose measured reader to extern status
Test / Create distribution (push) Successful in 59s
Test / Sandbox (push) Successful in 2m50s
Test / ShareFS (push) Successful in 3m55s
Test / Hakurei (push) Successful in 4m3s
Test / Sandbox (race detector) (push) Successful in 5m45s
Test / Hakurei (race detector) (push) Successful in 6m40s
Test / Flake checks (push) Successful in 1m12s
Test / Create distribution (push) Successful in 59s
Test / Sandbox (push) Successful in 2m50s
Test / ShareFS (push) Successful in 3m55s
Test / Hakurei (push) Successful in 4m3s
Test / Sandbox (race detector) (push) Successful in 5m45s
Test / Hakurei (race detector) (push) Successful in 6m40s
Test / Flake checks (push) Successful in 1m12s
This is always required by the implementation. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -204,7 +204,7 @@ type stubExtern struct {
|
||||
status map[unique.Handle[pkg.ID]]string
|
||||
}
|
||||
|
||||
func (e stubExtern) Artifact(id unique.Handle[pkg.ID]) (*pkg.Checksum, error) {
|
||||
func (e stubExtern) Artifact(_ context.Context, id unique.Handle[pkg.ID]) (*pkg.Checksum, error) {
|
||||
if checksum, ok := e.artifact[id]; ok {
|
||||
return &checksum, nil
|
||||
}
|
||||
@@ -219,7 +219,7 @@ func (e stubExtern) Checksum(checksum unique.Handle[pkg.Checksum]) pkg.Artifact
|
||||
return pkg.NewArchive(pkg.NewFile("", buf.Bytes()))
|
||||
}
|
||||
|
||||
func (e stubExtern) Status(id unique.Handle[pkg.ID]) (io.ReadCloser, error) {
|
||||
func (e stubExtern) Status(_ *pkg.RContext, id unique.Handle[pkg.ID]) (io.ReadCloser, error) {
|
||||
if status, ok := e.status[id]; ok {
|
||||
return io.NopCloser(strings.NewReader(status)), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user