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

Support downloadURLs with paths #1640

Merged
merged 2 commits into from Jun 28, 2020
Merged

Support downloadURLs with paths #1640

merged 2 commits into from Jun 28, 2020

Conversation

erwbgy
Copy link
Contributor

@erwbgy erwbgy commented Jun 28, 2020

What is the problem I am trying to address?

If a downloadURL with a path such https://internal.domain/repository/gonexus is configured then this is truncated to https://internal.domain when redirecting to the upstream proxy, resulting in failures.

How is the fix applied?

In getRedirectURL append the path to the downloadURL path rather than replacing it.

What GitHub issue(s) does this PR fix or close?

Fixes #1639

Signed-off-by: Keith Burdis keith.burdis@gs.com

@erwbgy erwbgy requested a review from a team as a code owner June 28, 2020 15:40
Copy link
Contributor

@marwan-at-work marwan-at-work left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the fix 🎉

Just the one comment and should be good to go

pkg/download/handler.go Outdated Show resolved Hide resolved
Copy link
Contributor

@marwan-at-work marwan-at-work left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌

@marwan-at-work marwan-at-work merged commit 78101d3 into gomods:main Jun 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

downloadURL path is truncated
2 participants