-
Notifications
You must be signed in to change notification settings - Fork 18k
x/tools/cmd/auth: tag and delete #70872
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
Comments
BTW, the process for deleting a package is to create a new module in its subdirectory, release it by tagging a version, and then delete it. That way any project that imports it will automatically depend on the deleted module (after upgrading) and will continue to build. See for example #59676. |
@samthanawalla can I please take this up? |
That would be great! However the proposal needs to get accepted first |
It looks like netrcauth and gitauth are integrated into the go command but not cookieauth. Should we leave cookieauth around or provide it somewhere else? |
This proposal has been added to the active column of the proposals project |
I think it makes sense to move cookieauth somewhere else so as to not confuse people but I am not sure where. |
Why was cookieauth not added to cmd/go's built-in support the way gitauth and netrcauth were? If it were also built in, then we could tag and delete the whole tree. |
@samthanawalla , ping on my above question. Thanks! |
The accepted proposal did not include cookieauth as a built-in command. |
Thanks. I'm having a lot of trouble reconstructing the history here. I see on Feb 7, 2019, @bcmills proposed what eventually became the GOAUTH mechanism. The next day, he created the three reference implementations, Then it looks like None of this really explains why cookieauth has a reference implementation, but wasn't part of |
Thanks for looking into that. I missed the mention of cookies.txt in the proposal. At this point, we can either (1) proceed with implementing cookieauth in 1.25 or (2) wait for increased demand of cookieauth. I would say number 2 makes sense as there are probably other priorities for the Go Command in the backlog. |
Thanks. I think we can move forward with tagging and deleting this. If it turns out there's enough demand for cookieauth, we can consider adding built-in support. |
Based on the discussion above, this proposal seems like a likely accept. The proposal is to tag and delete the golang.org/x/tools/cmd/auth packages. With the exception of cookieauth, these have been integrated into the go command, so the external helpers are not needed. People can continue to use the last version of the external cookieauth helper before it was deleted, and if there's demand we can revisit adding built-in support for cookieauth to cmd/go. |
No change in consensus, so accepted. 🎉 The proposal is to tag and delete the golang.org/x/tools/cmd/auth packages. With the exception of cookieauth, these have been integrated into the go command, so the external helpers are not needed. People can continue to use the last version of the external cookieauth helper before it was deleted, and if there's demand we can revisit adding built-in support for cookieauth to cmd/go. |
@samthanawalla glad to take it off your plate! |
Hi @samthanawalla , is there a specific convention to follow for naming tags for obsolete modules? If any such convention/documentation exists, could you please share it here! cmd/cover/v0.1.0-deprecated |
@samthanawalla ping on the above question! |
v0.1.0-deprecated should be fine |
Hi @samthanawalla , submitted change on gerrit to tag and release auth module. |
Which CL was this? Creating a tag usually requires a temporary escalation of privilege through a tool that requires approval of two Googlers. |
This has not yet been approved @adonovan . Added reviewers are @samthanawalla & @matloob |
What is "this"? (This proposal? It has been approved. A CL? Which one?) |
It is a change that I have submitted through Gerrit. Here's the link: https://go-review.googlesource.com/c/tools/+/666975 |
Change https://go.dev/cl/669035 mentions this issue: |
@shashank-priyadarshi Your change deletes the auth module, but we need to tag the module first, as @adonovan mentioned above. |
Proposal Details
The x/tools/cmd/auth directory is obsolete. We've integrated its GOAUTH implementation directly into src/cmd/go/internal/auth as part of issue #26232. This means we no longer need to maintain the separate reference implementation in x/tools/cmd/auth.
Therefore, let's delete x/tools/cmd/auth
The text was updated successfully, but these errors were encountered: