Good day! I see we have `>=1.10` as Go compiler versions for Go packages: https://gitweb.gentoo.org/repo/gentoo.git/tree/eclass/golang-base.eclass#n26 How do I increase (I mean: increase correctly) this constraint in the .ebuild which `inherit golang-build`?
You should be able to set DEPEND="... >=dev-lang/go-@version@" regardless of which eclasses the ebuild inherits.
(In reply to Jeroen Roovers from comment #1) > You should be able to set DEPEND="... >=dev-lang/go-@version@" regardless of > which eclasses the ebuild inherits. Thanks! But, will this: GO_DEPEND=">=dev-lang/go-1.10" DEPEND="${GO_DEPEND}" override my DEPEND="... >=dev-lang/go-@version@", won't it?
You should use BDEPEND in the ebuild for dev-lang/go instead of DEPEND since go is only run during the build and isn't needed during runtime. Also, keep in mind that if your package has go.mod and go.sum in the top level directory, you should inherit go-module instead of the golang-* eclasses. Thanks, William
(In reply to William Hubbs from comment #3) > You should use BDEPEND in the ebuild for dev-lang/go instead of DEPEND > since go is only run during the build and isn't needed during runtime. Should I use it before or after `inherit`? And, after all, won't eclass'es GO_DEPEND=">=dev-lang/go-1.10" DEPEND="${GO_DEPEND}" override my BDEPEND's setting? If won't - why? Thanks.
Ping.
eclass is sourced before ebuild, so ebuild's *DEPEND settings overrides the eclass ones.
Thanks!
P.S. I'm not a Gentoo or Go master but IMHO GO_DEPEND could be a (legal and documented) parameter :)