In go a major version bump must ensure that the import path is different from other major version. The v1
version doesn't need any suffix, all following major version bump must have the major version suffix in the module name. In your case that should be:
require github.com/jenkins-x/jx/v2 v2.0.383
The import path used then in your go source files should also specify that. You can have more information about this convention here https://github.com/golang/go/wiki/Modules#why-must-major-version-numbers-appear-in-import-paths
But some module authors don't follow this rule and this is incompatible with what is expected from the go tool. If you have write access to the module, you should fix the module name so that the major version appears in the module definition.
For this specific package none of the major versions add the required suffix on the module name. I guess as it is a CLI tool, it is not supposed to be consumed by other modules. Anyway if you need to import that, you have a workaround by specifiying the commit id corresponding to the label you want to depend on:
go get github.com/jenkins-x/jx@c71c08508888ec
But you can expect to have other problem then because this module doesn't seem to expect to be consumed from other module.
And you will be also on your own to upgrade this package, the go tool won't be able to bump the version itself as it doesn't know the current one.