-
Notifications
You must be signed in to change notification settings - Fork 10
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: distribution/reference
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.5.0
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: distribution/reference
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.6.0
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 8 commits
- 5 files changed
- 5 contributors
Commits on Aug 31, 2023
-
remove deprecated SplitHostname
It was deprecated since distribution [v2.7.0-rc.0][1] [1]: distribution/distribution@9a43b8f Signed-off-by: Sebastiaan van Stijn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4894124 - Browse repository at this point
Copy the full SHA 4894124View commit details
Commits on Sep 1, 2023
-
Configuration menu - View commit details
-
Copy full SHA for a3fb784 - Browse repository at this point
Copy the full SHA a3fb784View commit details
Commits on Sep 2, 2023
-
refactor splitDockerDomain to include more documentation
The splitDockerDomain attempts to determine whether the given name contains a domain, or should be used as a "remote-name". The logic used in doing so is based on (legacy) conventions, which have not always been properly documented. The logic used in this function was also optimized for "brevity", but not easy to ready, due to the combination of multiple boolean conditions combined on a single line, and some "double negatives". More documentation may still be needed, but let's start with documenting the logic used in this function; - Use `strings.Cut()` instead of `strings.IndexRune()`, which allows us to use descriptive variable names, and prevents use of the magic `-1` value. - Split the conditions into a switch, so that each of them can be documented separately. While this makes the code more verbose (and introduces some duplication), it should not impact performance, as only one condition would ever be met (performance may even be better, as the old code combined multiple conditions with `&&`). - Introduce a fast-path for single-element ("familiar") names. These names can be canonicalized early, without doing further handling. While working on the code, I also discovered an existing bug (or omission) where the code would not handle bare _domain names_. Ironically, the TestParseDockerRef test has a test-case name "hostname only", but which does not cover that case. THat test-case was transferred from containerd/cri, and does not describe this scenario (possibly was left as a "further exercise"); containerd/cri@25fdf72 Let keep it as a further exercise, but add a "TODO" to remind us doing so. Signed-off-by: Sebastiaan van Stijn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 89ee7ec - Browse repository at this point
Copy the full SHA 89ee7ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8507c7f - Browse repository at this point
Copy the full SHA 8507c7fView commit details
Commits on Feb 14, 2024
-
Exclude domain from name length check
Signed-off-by: Ozair <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for aaca75e - Browse repository at this point
Copy the full SHA aaca75eView commit details
Commits on Mar 20, 2024
-
Signed-off-by: Christoph Mewes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 094e717 - Browse repository at this point
Copy the full SHA 094e717View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a66312 - Browse repository at this point
Copy the full SHA 2a66312View commit details -
Merge pull request #9 from ozairasim/exclude-domain-from-name-length-…
…validation Exclude domain from name length check
Configuration menu - View commit details
-
Copy full SHA for ff14faf - Browse repository at this point
Copy the full SHA ff14fafView commit details
There are no files selected for viewing