summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint/files/trace
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2019-11-23 23:35:55 +0000
committerrillig <rillig@pkgsrc.org>2019-11-23 23:35:55 +0000
commit01b069e112e0d2f3857c1e06de01534b862e8bfc (patch)
tree5049ee41a7af990eedcc0994a4da61f58da48fe7 /pkgtools/pkglint/files/trace
parent98b8b1cdb72657dd290a615e0c33b6f7a814519e (diff)
downloadpkgsrc-01b069e112e0d2f3857c1e06de01534b862e8bfc.tar.gz
pkgtools/pkglint: update to 19.3.10
Changes since 19.3.9: In diagnostics for suggested package updates, the exact line of doc/TODO is mentioned. If a suggested update has an additional comment, the brackets around that comment are not output anymore. The check for defined but not used variables has been improved for the edge case of defining a variable in the package Makefile and using it in the buildlink3.mk file of the same package, which just doesn't work. Makefile fragments in patches/ directories are now completely ignored. It was a hypothetical case anyway. Comparing PKGSRC_COMPILER using the == or != operators is now considered an error instead of a warning. The common cases can be autofixed.
Diffstat (limited to 'pkgtools/pkglint/files/trace')
-rw-r--r--pkgtools/pkglint/files/trace/tracing.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgtools/pkglint/files/trace/tracing.go b/pkgtools/pkglint/files/trace/tracing.go
index 926344cbdf5..2c6a29a4d16 100644
--- a/pkgtools/pkglint/files/trace/tracing.go
+++ b/pkgtools/pkglint/files/trace/tracing.go
@@ -92,7 +92,9 @@ func argsStr(args []interface{}) string {
if rv.Len() > 0 {
rv.WriteString(", ")
}
- if str, ok := arg.(fmt.Stringer); ok && !isNil(str) {
+ if str, ok := arg.(fmt.GoStringer); ok && !isNil(str) {
+ rv.WriteString(str.GoString())
+ } else if str, ok := arg.(fmt.Stringer); ok && !isNil(str) {
rv.WriteString(str.String())
} else {
_, _ = fmt.Fprintf(&rv, "%#v", arg)