-
-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add go.mod #346
Comments
Not yet. I'd first like to see where modules are going and what workflows emerge. Plus, strictly speaking, we cannot abide by the modules requirements. This project very much doesn't use semantic versioning, and I'm not planning on changing that; every release of staticcheck is potentially breaking backwards compatibility, as far as its APIs are concerned. Having to change import paths for that would be quite the nuisance. |
Does anyone actually import the packages from the repo? Have you considered moving them into |
I know some people who implement their own tools using my framework (being fully aware of their unstable nature.) |
Adding a go.mod file doesn't necessarily mean you have to start using semantic versioning at the same time. That can happen later (if ever). Until then, you'd be relying on pseudo-verisions that naturally happen from each commit. Since they'd be v0.0.0-..., v0 is allowed to make breaking API changes. See the golang.org/x subrepos as an example of that. Other than golang.org/x/text which had a few semantic tags added before modules, all others are relying on pseudo-versions only. For example, see golang/time@9d24e82 and also see golang/go#28136 (comment) that describes the current strategy. To explain the motivation for my 👍 to this repository getting a go.mod file: I want to be able to more easily compute the vanity import path from the git remote URL. Without a go.mod file, that can be done by looking through packages and finding their import comments (like this one), but that's more computationally expensive to do. So for my needs, just a single line |
And the reason I want that is so that I can show this on my personal website: Instead of the current: 🙂 |
The We will continue to use our own versioning scheme that isn't semver. This means that The plan is to merge If you'd like to, Edit: The |
Closed in ced03d0 |
I'm happy to say that what I described in #346 (comment) above has been implemented (in commit shurcooL/events@5bd98dd). For example: So thanks for adding the go.mod file that made this possible! |
Go 1.11 is out. Is it time to add a Go module definition? It shouldn't break Go 1.10 and below, but will add an option to work on the project without a GOPATH.
The text was updated successfully, but these errors were encountered: