Created attachment 236620 [details] patch I am trying to upgrade devel/chroma with the attached patch but it fails: > ===> Building chroma from ./cmd/chroma > main module (github.com/alecthomas/chroma/v2) does not contain package github.com/alecthomas/chroma/v2/cmd/chroma
Created attachment 236634 [details] chroma-2.3.0.diff It fails because ./cmd/chroma now is in the different module, go detects this and refuses to build. Normally, setting GO_MODULE=github.com/alecthomas/chroma/v2/cmd/chroma would work, but for this port it doesn't because https://github.com/alecthomas/chroma/issues/528#issuecomment-866370115. So the hack here would be to stick to modules2tuple, but generate GH_TUPLE manually using go.mod from ./cmd/chroma, e.g. $ git clone https://github.com/alecthomas/chroma.git $ cd chroma/cmd/chroma $ go mod vendor $ modules2tuple ./vendor/modules.txt | sed '/chroma/d' (Ignore generated post-extract caused by nonsensical replace directive in go.mod.) Personally, I'd just stop packaging this port until upstream comes to their senses and makes it go-gettable again.
Created attachment 236635 [details] chroma-2.3.0.diff Attached the wrong patch, sorry.