FTBFS with Go 1.17

Bug #1942255 reported by William Wilson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
golang-github-urfave-cli (Debian)
Fix Released
Unknown
golang-github-urfave-cli (Ubuntu)
Fix Released
Low
William Wilson
golang-github-urfave-cli-v2 (Debian)
Fix Released
Unknown
golang-github-urfave-cli-v2 (Ubuntu)
Fix Released
Low
William Wilson

Bug Description

As of Go 1.17 the flag package will panic if given a syntactically invalid flag. See https://golang.org/doc/go1.17#flag for more detail.

There is a test in this package that tries to test an invalid usage scenario by passing a syntactically invalid flag. This causes the build time test to panic, and the build fails.

Revision history for this message
William Wilson (jawn-smith) wrote :
Changed in golang-github-urfave-cli (Ubuntu):
assignee: nobody → William Wilson (jawn-smith)
Changed in golang-github-urfave-cli-v2 (Ubuntu):
assignee: nobody → William Wilson (jawn-smith)
Revision history for this message
William Wilson (jawn-smith) wrote :
Changed in golang-github-urfave-cli (Ubuntu):
status: New → Fix Committed
Changed in golang-github-urfave-cli-v2 (Ubuntu):
status: New → Fix Committed
Mathew Hodson (mhodson)
Changed in golang-github-urfave-cli (Ubuntu):
importance: Undecided → Low
Changed in golang-github-urfave-cli-v2 (Ubuntu):
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package golang-github-urfave-cli-v2 - 2.2.0-3ubuntu1

---------------
golang-github-urfave-cli-v2 (2.2.0-3ubuntu1) impish; urgency=medium

  * 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)

 -- William 'jawn-smith' Wilson <email address hidden> Tue, 31 Aug 2021 13:54:29 -0500

Changed in golang-github-urfave-cli-v2 (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package golang-github-urfave-cli - 1.22.4-2ubuntu1

---------------
golang-github-urfave-cli (1.22.4-2ubuntu1) impish; urgency=medium

  * 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)

 -- William 'jawn-smith' Wilson <email address hidden> Wed, 01 Sep 2021 09:47:18 -0500

Changed in golang-github-urfave-cli (Ubuntu):
status: Fix Committed → Fix Released
Changed in golang-github-urfave-cli (Debian):
status: Unknown → New
Changed in golang-github-urfave-cli-v2 (Debian):
status: Unknown → New
Changed in golang-github-urfave-cli-v2 (Debian):
status: New → Fix Released
Changed in golang-github-urfave-cli (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.