Thursday, November 14, 2024
HomeGolangIs there a great way to do per-repo GOPRIVATE? - Getting Assist

Is there a great way to do per-repo GOPRIVATE? – Getting Assist


we’ve been operating into some points round exchange in go.mod and GOPRIVATE, the place we’d actually like GOPRIVATE to be set per-repo utilizing one thing like a .env file or related, somewhat than international per-user. is there a great way to do that that doesn’t require a bunch of messing round? or is there a pleasant technique to put in a function request to the go staff for .env help?

solutions appreciated!

Perhaps you may contemplate a greater IDE.
Goland, for instance, handles totally different ENVs for various tasks.

not likely a viable choice in a blended staff the place we strive to not be prescriptive in regards to the instruments a staff makes use of, as that’s jerk behaviour. and in addition you may pry zed from my chilly lifeless fingers. :joy:

plus, generally, forcing use of a particular IDE to get affordable behaviour isn’t excellent design methodology for a language generally. I’m in search of one thing that’ll work whatever the improvement atmosphere, not only for a tiny subset of its builders. we wish our code to perform with a easy git clone && go construct. beginning to look like there’s simply not an important answer, sadly.

What nonsense are you speaking about? I’m speaking in regards to the IDE answer, which is an answer for particular person builders, which is an choice. As you mentioned, should you don’t need to dictate what instruments the staff makes use of, then it’s as much as him to discover a answer to the issue. :unamused:
If you’re the chief of the staff, then you need to give a number of how-to pointers for the staff members to select from. In the identical method, if he’s unwilling to undertake your answer, it’s his enterprise. You aren’t their babysitter, they may maintain this stuff, belief them.
This drawback can’t be solved except you write a set of cli (e.g. wrapping go, studying the git configuration of the present listing, after which mechanically setting atmosphere variables based mostly on a configuration file). However this sort of wrapper is just not simple to make use of, I’ve seen rubbish stuff that wraps git instruments, and it actually doesn’t work.
For my part, in an effort to facilitate my private improvement effectivity, I’m naturally prepared to make use of a extra handy technique to take care of this sort of factor that I don’t need to fear an excessive amount of about.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments