Skip to content
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

List doesn't redirect #1959

Open
anu-tiernan opened this issue May 5, 2024 · 0 comments
Open

List doesn't redirect #1959

anu-tiernan opened this issue May 5, 2024 · 0 comments
Labels
triage Issues that need to be verified

Comments

@anu-tiernan
Copy link

Describe the bug
When configuring the download hcl file to redirect certain packages it appears that it does not redirect list requests. Calls to fetch a specifi module version redirect fine however.

Error Message
N/A, no error message produced

To Reproduce
In this example I have a private go module repo which I wish to redirect to for packages under a certain prefix, the following config reproduces the issue, attempting to fetch @latest results in a 200 being returned for the list endpoint according to the logs. Fetching a specific version results in the expected 301 response.

mode = "none"
downloadURL = "https://australia-southeast1-go.pkg.dev/test-project/gopkg"

download "github.com/test-org/*" {
    mode = "redirect"
}

Expected behavior
All requests for redirected packages are redirected

Environment (please complete the following information):

  • OS: Linux 64bit
  • Go version : go1.22.2
  • Proxy version : v0.14.0
  • Storage (fs/mongodb/s3 etc.) : memory

Additional context
Add any other context about the problem here.

@matt0x6F matt0x6F added the triage Issues that need to be verified label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Issues that need to be verified
Projects
None yet
Development

No branches or pull requests

2 participants