[pkg-go] Bug#855906: golang-codegangsta-cli: FTBFS: FAIL: TestCommandYamlFileTestDefaultValueFileWins (0.00s) helpers_test.go:10: Expected 15 (type int) - Got 7 (type int)

Vincent Bernat bernat at debian.org
Fri Mar 3 07:42:42 UTC 2017


 ❦ 23 février 2017 16:57 +0800, Chris Lamb <lamby at debian.org> :

>   dh_auto_test: go test -v -p 1 github.com/codegangsta/cli github.com/codegangsta/cli/altsrc returned exit code 1
>   debian/rules:4: recipe for target 'build' failed
>   make: *** [build] Error 1
>   dpkg-buildpackage: error: debian/rules build gave error exit status
>   2

Bisected to
https://github.com/urfave/cli/commit/d71794de198717467a8f053036b5620ccb0d613c.

Confirmed the bug is still in 1.18.1 and gone from 1.19.0. The patch is
quite invasive and doesn't apply cleanly on top of 1.18.x because it
relies on a totally different approach (with code generation). I don't
see any "[aA]pplyWithError" function in the current code that could be
patched. I have also no clue why this problem happens now and not
before. I suppose a change in the dependencies.

I would propose to turn this package as a semi-transitional package to
golang-github-urfave-cli-dev (just a symlink). However,
golang-github-urfave-cli-dev in testing has exactly the same problem but
it doesn't happen because it is ignoring the "altsrc" directory. In
unstable, it doesn't work either if we remove the altsrc directory
(because it is missing a symlink for gopkg.in/urfave/cli.v1).

As a quick workaround, as there is absolutely no use of
github.com/codegangsta/cli/altsrc in Debian, I'll just exclude it from
the package too.
-- 
Use variable names that mean something.
            - The Elements of Programming Style (Kernighan & Plauger)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-go-maintainers/attachments/20170303/fb9092e0/attachment.sig>


More information about the Pkg-go-maintainers mailing list