On 2023/10/27 12:01, Laurent Cheylus wrote: > Hi, > > update for devel/gopls v0.14.0 (LSP server for Golang) > Changelog: https://github.com/golang/tools/releases/tag/gopls%2Fv0.14.0 > > - update Makefile, modules.inc, distinfo and pkg/PLIST for this version > - add a patch to fix internal version (replace by MODGO_VERSION with > post-patch)
Is there a way to do this without patching like most of the other go ports do? -X main.version doesn't work here, but maybe there's something else.. <symphytum:/usr/ports>$ grep -R MODGO_LDFLAG `cat ~/plist.go` databases/influxdb/Makefile:MODGO_LDFLAGS = -X main.version=${MODGO_VERSION:S/v//} databases/influx-cli/Makefile:MODGO_LDFLAGS = -X main.version=${MODGO_VERSION:S/v//} devel/github-cli/Makefile:MODGO_LDFLAGS += -X "${MODGO_MODNAME}/internal/build.Version=$V" devel/goreleaser/Makefile:MODGO_LDFLAGS = -X main.version=${MODGO_VERSION:S/v//} devel/sqlc/Makefile:MODGO_LDFLAGS = -X "github.com/sqlc-dev/sqlc/internal/cmd.version=${MODGO_VERSION}" editors/micro/Makefile:MODGO_LDFLAGS += -X github.com/zyedidia/micro/v2/internal/util.Version=${MODGO_VERSION:S/v//} editors/micro/Makefile:MODGO_LDFLAGS += -X github.com/zyedidia/micro/v2/internal/util.CommitHash=${TAG_HASH} net/headscale/Makefile:MODGO_LDFLAGS += -X ${MODGO_MODNAME}/cmd/headscale/cli.Version=$\ net/mattermost-server/Makefile:MODGO_LDFLAGS = -X github.com/mattermost/mattermost/server/public/model.BuildNumber=${V} net/miniflux/Makefile:MODGO_LDFLAGS += -X miniflux.app/v2/internal/version.Version=${V} net/minio/client/Makefile:MODGO_LDFLAGS = -s -w \ net/minio/server/Makefile:MODGO_LDFLAGS = -s -w \ net/tailscale/Makefile:MODGO_LDFLAGS += -X tailscale.com/version.longStamp=${V} net/tailscale/Makefile:MODGO_LDFLAGS += -X tailscale.com/version.shortStamp=${V} net/websocketd/Makefile:MODGO_LDFLAGS += -X main.version=${MODGO_VERSION} security/cfssl/Makefile:MODGO_LDFLAGS += -X github.com/cloudflare/cfssl/cli/version.version=${VERSION} security/gopass/Makefile:MODGO_LDFLAGS = -X "main.version=${MODGO_VERSION}" security/gosec/Makefile:MODGO_LDFLAGS = -X main.Version=${MODGO_VERSION:S/v//}