-
Notifications
You must be signed in to change notification settings - Fork 125
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
native go modules support proposal (originally named v2 proposal) #70
Comments
Process to v2Initial PR: #67.
I'll be sending several PRs to gradually upstream the new tool instead. Here, I'm using this issue to track progress and welcome any feedback & code reviews. |
EDIT: Roadmap section moved to top comment. |
Suggest: Save command: compress sources |
I sent out a bunch of PRs which are minimal and focused on one thing, and a few more are ready (but I want to wait for the first PRs getting reviewed first). |
Reply to #93 (review) @wlynch let's track general discussion in the main issue?
No, there are no substantial changes to io. There is a minor and optional output format change of adding a space after each comma to make it convenient to click the license URL in terminal/editor, do you have any concerns? Also, git-url argument is removed, because it's no longer used. (But I am reconsidering this, because it may be useful for the main module.)
Well, the major breaking change is that we no longer support non go module projects. That's probably worth a v2. What do you think? |
Agreement today:
AI:
We will re-discuss at what point we want to bump to v2 as the development continues. |
EDIT: my compiled binary did not quite work. |
Created a new release that can be installed from source: https://github.com/Bobgy/go-licenses/releases/tag/v2.0.0-alpha.0. It's mostly ready to use and near backwards compatible. To try my fork: go get github.com/Bobgy/go-licenses/v2
go-licenses --help |
Is it somehow planned / possible to configure the |
Hi @oxisto, it's not in the scope. You might want to file a separate issue for this feature request. |
got it. thanks for your answer! |
Update, based on discussion with @wlynch, we think that the breaking change for GOPATH might not be noticeable, because we don't know anyone still using GOPATH now. Therefore, we will consider releasing the next version as v1.1 instead. There won't be an actual v2. Let us know if you use go-licenses and still use GOPATH, we can consider making changes in this proposal an actual v2 when needed. |
The major changes have been released as v1.1. |
Updates
2022-03-12: #70 (comment) This will be released as v1.1 instead, because the breaking change might not affect anyone now (TL;DR there's only a regression for people still using GOPATH). Also renamed this issue to make the purpose clearer.
2021-1-11: #70 (comment) I sent out a bunch of PRs for merging changes back to go-licenses repo. The final PRs I'm sending now try to change as minimal as possible. There are no substantial command/arg changes and there are no significant behavior changes. The only major theme is using go modules information to get license URLs more stably than the v1 go-licenses tool.
Original Proposal
Hi everyone, I'm building a rewrite of go-licenses that I propose to be go-licenses/v2.
Latest version on my dev branch: https://github.com/Bobgy/go-licenses/blob/main/v2.No longer latest.Built binary releases: https://github.com/Bobgy/go-licenses/releases.
I initially built it as a new tool, but after chatting with @wlynch, we agreed that it would better be v2 of this tool rather than a new brand.
The major changes are:
do not assume each package has a single license, v2 will scan all the files for each module to find licenses.Deferred for future considerations.For more details, refer to the README.
The new tool already addresses many open issues:
Deprioritized features
and might help the following (but needs confirmation):
Roadmap
The text was updated successfully, but these errors were encountered: