Codebase list golang-github-imdario-mergo / a54f98b
Drop incorrect 0002-fix-test-fixture-locations.patch For more details, see: https://lists.alioth.debian.org/pipermail/pkg-go-maintainers/Week-of-Mon-20180212/019336.html Michael Stapelberg 6 years ago
3 changed file(s) with 1 addition(s) and 25 deletion(s). Raw diff Collapse all Expand all
22 Priority: extra
33 Maintainer: Debian Go Packaging Team <pkg-go-maintainers@lists.alioth.debian.org>
44 Uploaders: Tim Potter <tpot@hpe.com>
5 Build-Depends: debhelper (>= 9), dh-golang, golang-any, golang-yaml.v2-dev
5 Build-Depends: debhelper (>= 9), dh-golang (>= 1.31), golang-any, golang-yaml.v2-dev
66 Standards-Version: 3.9.8
77 Homepage: https://github.com/imdario/mergo
88 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-go/packages/golang-github-imdario-mergo.git
+0
-23
debian/patches/0002-fix-test-fixture-locations.patch less more
0 Description: Modify test fixture paths
1 The Debian packging process executes Go tests in a subdirectory
2 which is not handled correctly. The path to each test fixture
3 file has been updated to reflect this.
4 Author: Tim Potter <tpot@hpe.com>
5 Forwarded: no
6 ---
7 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
8 Index: golang-github-imdario-mergo/mergo_test.go
9 ===================================================================
10 --- golang-github-imdario-mergo.orig/mergo_test.go
11 +++ golang-github-imdario-mergo/mergo_test.go
12 @@ -314,8 +314,8 @@ func TestMaps(t *testing.T) {
13 }
14
15 func TestYAMLMaps(t *testing.T) {
16 - thing := loadYAML("testdata/thing.yml")
17 - license := loadYAML("testdata/license.yml")
18 + thing := loadYAML("../../../../../testdata/thing.yml")
19 + license := loadYAML("../../../../../testdata/license.yml")
20 ft := thing["fields"].(map[interface{}]interface{})
21 fl := license["fields"].(map[interface{}]interface{})
22 expectedLength := len(ft) + len(fl)
00 0001-use-newer-yaml-library.patch
1 0002-fix-test-fixture-locations.patch