butane/butane-0.11.0-fix-vcontext-report-copy.patch
2021-04-09 17:45:17 -04:00

18 lines
547 B
Diff

Fix test failure on 386
https://github.com/coreos/vcontext/pull/14
diff --git a/vendor/github.com/coreos/vcontext/report/report.go b/vendor/github.com/coreos/vcontext/report/report.go
index 5378e84..618bc75 100644
--- a/vendor/github.com/coreos/vcontext/report/report.go
+++ b/vendor/github.com/coreos/vcontext/report/report.go
@@ -131,7 +131,7 @@ func (r *Report) AddOn(c path.ContextPath, err error, k EntryKind) {
}
r.Entries = append(r.Entries, Entry{
Message: err.Error(),
- Context: c,
+ Context: c.Copy(),
Kind: k,
})
}