Package: golang-github-pingcap-errors / 0.11.4-2
Metadata
| Package | Version | Patches format |
|---|---|---|
| golang-github-pingcap-errors | 0.11.4-2 | 3.0 (quilt) |
Patch series
view the series file| Patch | File delta | Description |
|---|---|---|
| fix test expectations for paths.patch | (download) |
format_test.go |
88 44 + 44 - 0 ! |
fix: adjust go test expectations for debian packaging
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
The upstream test suite for `golang-github-pingcap-errors` fails during
Debian package build due to discrepancies in expected output. The tests
contain hardcoded package paths and line numbers that do not match the
Debian build environment.
Align the expected test output with the actual build environment.
- The expected package import path from `github.com/pkg/errors` to
`github.com/pingcap/errors`.
- Hardcoded line numbers in stack traces to reflect the actual line
numbers in the source files within the Debian build path.
Fixes errors:
=== RUN TestFormatNew
format_test.go:38: test 3: line 2: fmt.Sprintf("%+v", err):
got: "error\ngithub.com/pingcap/errors.TestFormatNew\n\t/tmp/build/source/debian/.build/upstream/src/github.com/pingcap/errors/format_test.go:26\ntesting.tRunner\n\t/usr/lib/go-1.24/src/testing/testing.go:1792\nruntime.goexit\n\t/usr/lib/go-1.24/src/runtime/asm_amd64.s:1700"
want: "error\ngithub.com/pkg/errors.TestFormatNew\n\t.+/github.com/pkg/errors/format_test.go:26"
format_test.go:38: test 3: line 3: fmt.Sprintf("%+v", err):
got: "error\ngithub.com/pingcap/errors.TestFormatNew\n\t/tmp/build/source/debian/.build/upstream/src/github.com/pingcap/errors/format_test.go:26\ntesting.tRunner\n\t/usr/lib/go-1.24/src/testing/testing.go:1792\nruntime.goexit\n\t/usr/lib/go-1.24/src/runtime/asm_amd64.s:1700"
want: "error\ngithub.com/pkg/errors.TestFormatNew\n\t.+/github.com/pkg/errors/format_test.go:26"
|
| fix stack_test failures.patch | (download) |
stack_test.go |
6 3 + 3 - 0 ! |
fix remaining stack_test failures
Addresses the remaining test failures in `stack_test.go`:
1. The expected output for `TestFrameFormat` incorrectly referenced
`github.com/pkg/errors` instead of `github.com/pingcap/errors`
in the package path. This has been updated to reflect the correct
package.
=== RUN TestFrameFormat
stack_test.go:125: test 12: line 2: fmt.Sprintf("%+v", err):
got: "github.com/pingcap/errors.init\n\t/tmp/build/source/debian/.build/upstream/src/github.com/pingcap/errors/stack_test.go:10"
want: "github.com/pingcap/errors.init\n\t.+/github.com/pkg/errors/stack_test.go:10"
|
| 0003 Skip test which fails on arm64.patch | (download) |
stack_test.go |
3 3 + 0 - 0 ! |
skip test which fails on arm64 |
| 0004 Fix line numbers after last patch.patch | (download) |
stack_test.go |
26 13 + 13 - 0 ! |
fix line numbers after last patch |
1
