mirror of
https://github.com/distribution/distribution
synced 2024-11-12 05:45:51 +01:00
152af63ec5
This integrates the new module, which was extracted from this repository at commit b9b19409cf458dcb9e1253ff44ba75bd0620faa6; # install filter-repo (https://github.com/newren/git-filter-repo/blob/main/INSTALL.md) brew install git-filter-repo # create a temporary clone of docker cd ~/Projects git clone https://github.com/distribution/distribution.git reference cd reference # commit taken from git rev-parse --verify HEAD b9b19409cf458dcb9e1253ff44ba75bd0620faa6 # remove all code, except for general files, 'reference/', and rename to / git filter-repo \ --path .github/workflows/codeql-analysis.yml \ --path .github/workflows/fossa.yml \ --path .golangci.yml \ --path distribution-logo.svg \ --path CODE-OF-CONDUCT.md \ --path CONTRIBUTING.md \ --path GOVERNANCE.md \ --path README.md \ --path LICENSE \ --path MAINTAINERS \ --path-glob 'reference/*.*' \ --path-rename reference/: # initialize go.mod go mod init github.com/distribution/reference go mod tidy -go=1.20 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
11 lines
256 B
Go
11 lines
256 B
Go
package reference
|
|
|
|
import "github.com/distribution/reference"
|
|
|
|
// Sort sorts string references preferring higher information references.
|
|
//
|
|
// Deprecated: use [reference.Sort].
|
|
func Sort(references []string) []string {
|
|
return reference.Sort(references)
|
|
}
|