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

registryurl: remove fallback code for go < 1.8 #225

Merged
merged 2 commits into from Aug 20, 2022

Conversation

thaJeztah
Copy link
Member

Go 1.8 has ben EOL for years, so we can drop this

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@@ -35,3 +35,13 @@ func Parse(registryURL string) (*url.URL, error) {
u.RawQuery = ""
return u, nil
}

// GetHostname returns the hostname of the URL
func GetHostname(u *url.URL) string {
Copy link
Member Author

Choose a reason for hiding this comment

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

Actually, let me drop internal uses of this function

These were just wrappers for url.Hostname() and url.Port()

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Copy link
Member

@crazy-max crazy-max left a comment

Choose a reason for hiding this comment

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

LGTM

@thaJeztah thaJeztah merged commit 8fee112 into docker:master Aug 20, 2022
@thaJeztah thaJeztah deleted the drop_go1.8 branch August 20, 2022 18:35
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.

None yet

2 participants