From f72f6c9c804f70515aa4b46799f10a64dab8b65d Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sun, 29 Nov 2020 18:44:36 +0100 Subject: [PATCH 1/2] Fix debug build --- cmd/restic/cmd_debug.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/restic/cmd_debug.go b/cmd/restic/cmd_debug.go index b36eefa07..68213759e 100644 --- a/cmd/restic/cmd_debug.go +++ b/cmd/restic/cmd_debug.go @@ -87,7 +87,7 @@ func printPacks(ctx context.Context, repo *repository.Repository, wr io.Writer) return repo.List(ctx, restic.PackFile, func(id restic.ID, size int64) error { h := restic.Handle{Type: restic.PackFile, Name: id.String()} - blobs, err := pack.List(repo.Key(), restic.ReaderAt(ctx, repo.Backend(), h), size) + blobs, _, err := pack.List(repo.Key(), restic.ReaderAt(ctx, repo.Backend(), h), size) if err != nil { Warnf("error for pack %v: %v\n", id.Str(), err) return nil From 54a6d9894557607f46dfeb5e84e3762b92c6cfa3 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sun, 29 Nov 2020 18:47:00 +0100 Subject: [PATCH 2/2] Enable debug builds for CI --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5746cdf5e..e55e8f1b9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -222,6 +222,7 @@ jobs: run: | mkdir build-output gox -parallel 2 -verbose -osarch "$GOX_ARCHS" -output "build-output/{{.Dir}}_{{.OS}}_{{.Arch}}" ./cmd/restic + gox -parallel 2 -verbose -osarch "$GOX_ARCHS" -tags debug -output "build-output/{{.Dir}}_{{.OS}}_{{.Arch}}_debug" ./cmd/restic lint: name: lint