Open steve-hb opened 10 months ago
hey @steve-hb - this makes sense to add to the v2 cli. though it's gonna be a bit before I can get to it. are you up for working on a PR if I point you at the right places?
also have you opened an issue over with the IntelliJ folks. I bet this is generic issue with versioned go modules where the ide has no idea which version you want (I wonder if there's a way to tell it "always use v2").
When I find the time, I may be able to do it, but next weeks I'm not available.
I'll create a ticket with IntelliJ folks, didn't think of that tbh.
When setting up new projects, Goland (IntelliJ IDEA) imports the v1 by default. This always causes headaches in my team due to the incompatibility of various flags (or passing them to the library used by the project) and therefore wastes times until someone figures out the old version was used and just upgrades every reference to /v2.
Proposal: Reject or at least warn the user when v1 was used in the project.