Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1069367

Bug#993483: golang-github-urfave-cli-v2: FTBFS with Go 1.17

From William 'jawn-smith' Wilson <william.wilson@canonical.com>
Newsgroups linux.debian.bugs.dist
Subject Bug#993483: golang-github-urfave-cli-v2: FTBFS with Go 1.17
Date 2021-09-02 00:30 +0200
Message-ID <CSGU2-6Ym-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Package: golang-github-urfave-cli-v2
Version: 2.2.0-3
Severity: normal
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu impish ubuntu-patch

Dear Maintainer,

As of Go 1.17, the flag package panics if given a syntactically invalid flag.
This was causing build time tests of this package to fail and therefore
the package was not building in Ubuntu with Go 1.17.

In Ubuntu, the attached patch was applied to achieve the following:

Allow the package to build successfully with Go 1.17.

  * Change "incorrect usage" test case to use an undefined flag rather
    than a syntactically invalid flag. This prevents panics in test cases,
    as Go 1.17 panics with invalid flag syntax (LP: #1942255)


Thanks for considering the patch.


-- System Information:
Debian Release: bullseye/sid
  APT prefers hirsute-updates
  APT policy: (500, 'hirsute-updates'), (500, 'hirsute-security'), (500, 'hirsute'), (100, 'hirsute-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.11.0-31-generic (SMP w/32 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread


Thread

Bug#993483: golang-github-urfave-cli-v2: FTBFS with Go 1.17 William 'jawn-smith' Wilson <william.wilson@canonical.com> - 2021-09-02 00:30 +0200

csiph-web