Date: Fri, 19 Apr 2024 16:44:04 +0000 From: Zach Leslie <xaque208@gmail.com> To: freebsd-ports@freebsd.org Subject: Porting a new Golang app: go mod replace relative path Message-ID: <CACrr7Y5mDTZ4KONpWT4o_TnHWf4ZWuEtUgPNa31V0rpDHH6x5w@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Good day, I've been trying to create a new port and running into an issue. Here is the port: https://github.com/zachfi/personal-ports/blob/main/sysutils/alloy/Makefile Here is the source of the issue: https://github.com/zachfi/personal-ports/blob/main/sysutils/alloy/Makefile When running `make makesum` to fetch all the dependencies, the local reference fails with the following error message. ===> Fetching github.com/grafana/alloy dependencies go: github.com/grafana/alloy/syntax@v0.1.0 (replaced by ./syntax): reading syntax/go.mod: open /usr/ports/distfiles/go/sysutils_alloy/grafana-alloy-v1.0.0_GH0/syntax/go.mod: no such file or directory *** Error code 1 I've spoken with the authors, and they don't intend to keep a `vendor` directory, nor do they intend to change the go mod replace line, so I'm left wondering what my options are. Is there a workaround for this? Can we specify in the port that for a specific module, to reference the module github.com/grafana/alloy/syntax at the same version as the port? Any advice would be appreciated. Cheers, -- Zach
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACrr7Y5mDTZ4KONpWT4o_TnHWf4ZWuEtUgPNa31V0rpDHH6x5w>