[PR #2010] [MERGED] Always return valid go-get meta, even if unauthorized #16179

Closed
opened 2025-11-02 12:04:05 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2010
Author: @bkcsoft
Created: 6/19/2017
Status: Merged
Merged: 6/26/2017
Merged by: @lunny

Base: masterHead: go-get-meta-fix


📝 Commits (2)

  • ca0951c Always return valid go-get meta, even if unauthorized
  • 3b55cbd don't leak information

📊 Changes

1 file changed (+41 additions, -3 deletions)

View changed files

📝 modules/context/context.go (+41 -3)

📄 Description

(Not leaking information, returns valid metadata for ALL requests... even broken ones...)

This is required because go get doesn't know about .netrc


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/2010 **Author:** [@bkcsoft](https://github.com/bkcsoft) **Created:** 6/19/2017 **Status:** ✅ Merged **Merged:** 6/26/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `go-get-meta-fix` --- ### 📝 Commits (2) - [`ca0951c`](https://github.com/go-gitea/gitea/commit/ca0951c7ba0d8416bed3a45a7487df3bd3b786de) Always return valid go-get meta, even if unauthorized - [`3b55cbd`](https://github.com/go-gitea/gitea/commit/3b55cbdb3d6871a3d07157ada5142baad37f7709) don't leak information ### 📊 Changes **1 file changed** (+41 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `modules/context/context.go` (+41 -3) </details> ### 📄 Description (Not leaking information, returns valid metadata for ALL requests... even broken ones...) This is required because `go get` doesn't know about `.netrc` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:04:05 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16179