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ixvUhr9IywRPK/dBvr E/eTYdQWrajBSpfMotoIXUl76M0jhJbwjIS6Nk+zmJwUxjq3SaUAUvIbUAHdJUXgujssKfyZ WrUiB7xi1zOkyP9T0HT2tHHA+/EGmfq5Ohe+IF4WpBJ37t12ZxelA7qXHbtPljz+Ptljs3tS zX4omw== In-Reply-To: X-Rspamd-Action: no action X-Rspamd-Server: beta.fechner.net X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.60 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.61)[-0.606]; DMARC_POLICY_ALLOW(-0.50)[fechner.net,none]; RCVD_IN_DNSWL_MED(-0.20)[2a03:4000:67:cc1::2:from]; R_SPF_ALLOW(-0.20)[+a]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; XM_UA_NO_VERSION(0.01)[]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:197540, ipnet:2a03:4000::/32, country:DE]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_TO(0.00)[gmail.com,freebsd.org]; RCVD_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_DKIM_NA(0.00)[]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4VNGtD73Qjz428N This is a multi-part message in MIME format. --------------SHP4a6kYpkaaWrZ7we0t9b0r Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Am 19.04.2024 um 19:44 schrieb Zach Leslie: > ===> 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. I think the problem is this line: https://github.com/grafana/alloy/blob/main/go.mod#L777 You can maybe try to fetch this additional go.mod somehow manually: https://github.com/grafana/alloy/blob/main/syntax/go.mod maybe by an additional manually added distfile entry to place it in the expected directly (maybe in a prefetch rule or by just manually extending the DIST_FILES). Gruß Matthias -- "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." -- Rich Cook --------------SHP4a6kYpkaaWrZ7we0t9b0r Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
Am 19.04.2024 um 19:44 schrieb Zach Leslie:
===> 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.

I think the problem is this line:
https://github.com/grafana/alloy/blob/main/go.mod#L777

You can maybe try to fetch this additional go.mod somehow manually:
https://github.com/grafana/alloy/blob/main/syntax/go.mod

maybe by an additional manually added distfile entry to place it in the expected directly (maybe in a prefetch rule or by just manually extending the DIST_FILES).

Gruß
Matthias

-- 

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook
--------------SHP4a6kYpkaaWrZ7we0t9b0r--