[Bug 264874] [NEW PORT] net/slackcat: Simple commandline utility to post snippets to Slack

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 25 Jun 2022 00:51:14 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264874

Norikatsu Shigemura <nork@ninth-nine.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #234919|0                           |1
        is obsolete|                            |

--- Comment #3 from Norikatsu Shigemura <nork@ninth-nine.com> ---
Created attachment 234925
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=234925&action=edit
A new port for slackcat [fixed #2]

Hi Dmitri.

>> GO_MODULE=	github.com/bcicen/${PORTNAME}@v1.2.2-0.20210721161326-5c4e4410002c
>This will actually install the older v1.2.2 version, not v1.7.3 as the DISTVERSION says.

Oh I see.  This is a result of following command, so it's a specification.

$ go118 list -m -f "{{.Version}}" github.com/bcicen/slackcat@1.7.3
v1.2.2-0.20210721161326-5c4e4410002c

I don't know why "v1.2.2".

>> GO_TARGET=	${PORTNAME}
>This is already the default.
>> @${REINPLACE_CMD} -e "/version = /s/dev-build/${DISTVERSION}/" ${WRKSRC}/main.go
>A better way to do this would be with GO_BUILDFLAGS=-ldflags="-X main.version=${DISTVERSION}"

Thank you. I clean-up-ed, please see attached new patch.

-- 
You are receiving this mail because:
You are the assignee for the bug.