Public bug reported:

The man page for 'gofmt' describes three 'Formatting control flags':
-comments=true , -tabs-true, and -tabwidth=8.  If I attempt to use them,
I get i.e. "flag provided but not defined: -tabs"

Steps to reproduce:

gofmt <<<"package main"  # success
gofmt -invalidflag=true <<<"package main"  # failure, as expected
gofmt -comments=true <<<"package main"  # failure, unexpected
gofmt -tabs=true <<<"package main"  # failure, unexpected

the '-comments', '-tabs' and '-tabwidth' are removed from gofmt in
version 1.11.2, but I am using gofmt version 1.10 from Ubuntu.  If this
change was backported to golang-go 1.10~4 then the manpage should be
updated to match.

ProblemType: Bug
DistroRelease: Ubuntu 18.10
Package: golang-go 2:1.10~4ubuntu1
ProcVersionSignature: Ubuntu 4.18.0-11.12-generic 4.18.12
Uname: Linux 4.18.0-11-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.10-0ubuntu13.1
Architecture: amd64
CurrentDesktop: KDE
Date: Thu Nov 22 12:26:51 2018
InstallationDate: Installed on 2018-10-30 (22 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
SourcePackage: golang-defaults
UpgradeStatus: Upgraded to cosmic on 2018-11-02 (19 days ago)

** Affects: golang-defaults (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug cosmic

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1804686

Title:
  "Formatting control flags" mentioned in man page are absent

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/golang-defaults/+bug/1804686/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to