[pkg-go] Bug#991084: golint: Golint doesn't return error code if it find any errors

Dmitry E. Oboukhov unera at debian.org
Tue Jul 13 20:01:44 BST 2021


Package: golint
Version: 0.0+git20200130.910be7a-1+b5
Severity: normal
X-Debbugs-Cc: unera at debian.org

Package: golint
X-Debbugs-Cc: unera at debian.org
Version: 0.0+git20200130.910be7a-1+b5
Severity: normal

So it's unusable with CI/Vim

Example:

$ golint cal.go
cal.go:12:8: expected '(', found ain (and 2 more errors)

$ golint cal.go && echo ok
cal.go:12:8: expected '(', found ain (and 2 more errors)
ok

$ golint --help
Usage of golint:
	golint [flags] # runs on package in current directory
	golint [flags] [packages]
	golint [flags] [directories] # where a '/...' suffix includes all sub-directories
	golint [flags] [files] # all must belong to a single package
Flags:
  -min_confidence float
    	minimum confidence of a problem to print it (default 0.8)
  -set_exit_status
    	set exit status to 1 if any issues are found

$ golint -set_exit_status cal.go && echo ok
cal.go:12:8: expected '(', found ain (and 2 more errors)
ok



-- System Information:
Debian Release: 11.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-security'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-7-amd64 (SMP w/8 CPU threads)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.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

-- no debconf information



More information about the Pkg-go-maintainers mailing list