[Bug 266567] textproc/termshot: incorrect --version
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 23 Sep 2022 16:08:34 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266567 Bug ID: 266567 Summary: textproc/termshot: incorrect --version Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: lbartoletti@FreeBSD.org Reporter: eduardo@FreeBSD.org Flags: maintainer-feedback?(lbartoletti@FreeBSD.org) Assignee: lbartoletti@FreeBSD.org Hello! >`termshot --version`: > termshot version (development) It seams that -X ${GO_MODULE}/internal.Version=${DISTVERSION}" isn't working. internal/cmd/root.go: --- if showVersion, err := cmd.Flags().GetBool("version"); showVersion && err == nil { if len(version) == 0 { version = "(development)" } --- Sometimes I have similar problems geting "version" to work properly. I have tried several combinations without success. Any clues? Thanks, Nuno -- You are receiving this mail because: You are the assignee for the bug.