Replace vbom.ml/util with fvbommel/sortorder

The vanity domain is down, and the project has moved
to a new location.

vendor check started failing because of this:

    Collecting initial packages
    Download dependencies
    unrecognized import path "vbom.ml/util" (https fetch: Get https://vbom.ml/util?go-get=1: dial tcp: lookup vbom.ml on 169.254.169.254:53: no such host)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2020-08-28 14:35:09 +02:00
parent ca35f2973a
commit 6703919c71
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
24 changed files with 29 additions and 29 deletions

View File

@ -11,8 +11,8 @@ import (
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/docker/cli/cli/config" "github.com/docker/cli/cli/config"
"github.com/fvbommel/sortorder"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"vbom.ml/util/sortorder"
) )
// ReexecEnvvar is the name of an ennvar which is set to the command // ReexecEnvvar is the name of an ennvar which is set to the command

View File

@ -9,8 +9,8 @@ import (
"github.com/docker/cli/cli/command/formatter" "github.com/docker/cli/cli/command/formatter"
"github.com/docker/cli/opts" "github.com/docker/cli/opts"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
"github.com/fvbommel/sortorder"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"vbom.ml/util/sortorder"
) )
// ListOptions contains options for the docker config ls command. // ListOptions contains options for the docker config ls command.

View File

@ -10,8 +10,8 @@ import (
"github.com/docker/cli/cli/command/formatter" "github.com/docker/cli/cli/command/formatter"
"github.com/docker/cli/cli/context/docker" "github.com/docker/cli/cli/context/docker"
kubecontext "github.com/docker/cli/cli/context/kubernetes" kubecontext "github.com/docker/cli/cli/context/kubernetes"
"github.com/fvbommel/sortorder"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"vbom.ml/util/sortorder"
) )
type listOptions struct { type listOptions struct {

View File

@ -9,8 +9,8 @@ import (
"github.com/docker/cli/cli/command/formatter" "github.com/docker/cli/cli/command/formatter"
"github.com/docker/cli/opts" "github.com/docker/cli/opts"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
"github.com/fvbommel/sortorder"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"vbom.ml/util/sortorder"
) )
type listOptions struct { type listOptions struct {

View File

@ -9,8 +9,8 @@ import (
"github.com/docker/cli/cli/command/formatter" "github.com/docker/cli/cli/command/formatter"
"github.com/docker/cli/opts" "github.com/docker/cli/opts"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
"github.com/fvbommel/sortorder"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"vbom.ml/util/sortorder"
) )
type listOptions struct { type listOptions struct {

View File

@ -8,8 +8,8 @@ import (
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/docker/cli/cli/command/formatter" "github.com/docker/cli/cli/command/formatter"
"github.com/docker/cli/opts" "github.com/docker/cli/opts"
"github.com/fvbommel/sortorder"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"vbom.ml/util/sortorder"
) )
type listOptions struct { type listOptions struct {

View File

@ -9,8 +9,8 @@ import (
"github.com/docker/cli/cli/command/formatter" "github.com/docker/cli/cli/command/formatter"
"github.com/docker/cli/opts" "github.com/docker/cli/opts"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
"github.com/fvbommel/sortorder"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"vbom.ml/util/sortorder"
) )
type listOptions struct { type listOptions struct {

View File

@ -15,8 +15,8 @@ import (
"github.com/docker/docker/api/types/swarm" "github.com/docker/docker/api/types/swarm"
"github.com/docker/docker/pkg/stringid" "github.com/docker/docker/pkg/stringid"
units "github.com/docker/go-units" units "github.com/docker/go-units"
"github.com/fvbommel/sortorder"
"github.com/pkg/errors" "github.com/pkg/errors"
"vbom.ml/util/sortorder"
) )
const serviceInspectPrettyTemplate formatter.Format = ` const serviceInspectPrettyTemplate formatter.Format = `

View File

@ -9,8 +9,8 @@ import (
"github.com/docker/cli/cli/command/stack/kubernetes" "github.com/docker/cli/cli/command/stack/kubernetes"
"github.com/docker/cli/cli/command/stack/options" "github.com/docker/cli/cli/command/stack/options"
"github.com/docker/cli/cli/command/stack/swarm" "github.com/docker/cli/cli/command/stack/swarm"
"github.com/fvbommel/sortorder"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"vbom.ml/util/sortorder"
) )
func newListCommand(dockerCli command.Cli, common *commonOptions) *cobra.Command { func newListCommand(dockerCli command.Cli, common *commonOptions) *cobra.Command {

View File

@ -13,9 +13,9 @@ import (
"github.com/docker/cli/cli/command/stack/swarm" "github.com/docker/cli/cli/command/stack/swarm"
cliopts "github.com/docker/cli/opts" cliopts "github.com/docker/cli/opts"
swarmtypes "github.com/docker/docker/api/types/swarm" swarmtypes "github.com/docker/docker/api/types/swarm"
"github.com/fvbommel/sortorder"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/pflag" "github.com/spf13/pflag"
"vbom.ml/util/sortorder"
) )
func newServicesCommand(dockerCli command.Cli, common *commonOptions) *cobra.Command { func newServicesCommand(dockerCli command.Cli, common *commonOptions) *cobra.Command {

View File

@ -16,8 +16,8 @@ import (
"github.com/docker/cli/opts" "github.com/docker/cli/opts"
"github.com/docker/docker/api/types/versions" "github.com/docker/docker/api/types/versions"
"github.com/docker/go-units" "github.com/docker/go-units"
"github.com/fvbommel/sortorder"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"vbom.ml/util/sortorder"
) )
type pruneOptions struct { type pruneOptions struct {

View File

@ -10,7 +10,7 @@ import (
"github.com/docker/cli/cli/command/idresolver" "github.com/docker/cli/cli/command/idresolver"
"github.com/docker/cli/cli/config/configfile" "github.com/docker/cli/cli/config/configfile"
"github.com/docker/docker/api/types/swarm" "github.com/docker/docker/api/types/swarm"
"vbom.ml/util/sortorder" "github.com/fvbommel/sortorder"
) )
type tasksSortable []swarm.Task type tasksSortable []swarm.Task

View File

@ -10,11 +10,11 @@ import (
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/docker/cli/cli/command/image" "github.com/docker/cli/cli/command/image"
"github.com/docker/cli/cli/trust" "github.com/docker/cli/cli/trust"
"github.com/fvbommel/sortorder"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"github.com/theupdateframework/notary" "github.com/theupdateframework/notary"
"github.com/theupdateframework/notary/client" "github.com/theupdateframework/notary/client"
"github.com/theupdateframework/notary/tuf/data" "github.com/theupdateframework/notary/tuf/data"
"vbom.ml/util/sortorder"
) )
// trustTagKey represents a unique signed tag and hex-encoded hash pair // trustTagKey represents a unique signed tag and hex-encoded hash pair

View File

@ -7,8 +7,8 @@ import (
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/docker/cli/cli/command/formatter" "github.com/docker/cli/cli/command/formatter"
"github.com/fvbommel/sortorder"
"github.com/theupdateframework/notary/client" "github.com/theupdateframework/notary/client"
"vbom.ml/util/sortorder"
) )
func prettyPrintTrustInfo(cli command.Cli, remote string) error { func prettyPrintTrustInfo(cli command.Cli, remote string) error {

View File

@ -8,8 +8,8 @@ import (
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/docker/cli/cli/command/formatter" "github.com/docker/cli/cli/command/formatter"
"github.com/docker/cli/opts" "github.com/docker/cli/opts"
"github.com/fvbommel/sortorder"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"vbom.ml/util/sortorder"
) )
type listOptions struct { type listOptions struct {

View File

@ -9,7 +9,7 @@ import (
"reflect" "reflect"
"sort" "sort"
"vbom.ml/util/sortorder" "github.com/fvbommel/sortorder"
) )
const ( const (

View File

@ -21,6 +21,7 @@ github.com/docker/go-metrics d466d4f6fd960e01820085bd7e1a
github.com/docker/go-units 519db1ee28dcc9fd2474ae59fca29a810482bfb1 # v0.4.0 github.com/docker/go-units 519db1ee28dcc9fd2474ae59fca29a810482bfb1 # v0.4.0
github.com/docker/swarmkit 035d564a3686f5e348d861ec0c074ff26854c498 github.com/docker/swarmkit 035d564a3686f5e348d861ec0c074ff26854c498
github.com/evanphx/json-patch 72bf35d0ff611848c1dc9df0f976c81192392fa5 # v4.1.0 github.com/evanphx/json-patch 72bf35d0ff611848c1dc9df0f976c81192392fa5 # v4.1.0
github.com/fvbommel/sortorder 6b6b45a52fcc54f788363c1880630248b63402a1 # v1.0.0
github.com/gofrs/flock 392e7fae8f1b0bdbd67dad7237d23f618feb6dbb # v0.7.1 github.com/gofrs/flock 392e7fae8f1b0bdbd67dad7237d23f618feb6dbb # v0.7.1
github.com/gogo/googleapis 01e0f9cca9b92166042241267ee2a5cdf5cff46c # v1.3.2 github.com/gogo/googleapis 01e0f9cca9b92166042241267ee2a5cdf5cff46c # v1.3.2
github.com/gogo/protobuf 5628607bb4c51c3157aacc3a50f0ab707582b805 # v1.3.1 github.com/gogo/protobuf 5628607bb4c51c3157aacc3a50f0ab707582b805 # v1.3.1
@ -95,6 +96,5 @@ k8s.io/kube-openapi 0270cf2f1c1d995d34b36019a6f6
k8s.io/kubernetes a17149e1a189050796ced469dbd78d380f2ed5ef # v1.16.9 k8s.io/kubernetes a17149e1a189050796ced469dbd78d380f2ed5ef # v1.16.9
k8s.io/utils 69764acb6e8e900b7c05296c5d3c9c19545475f9 k8s.io/utils 69764acb6e8e900b7c05296c5d3c9c19545475f9
sigs.k8s.io/yaml fd68e9863619f6ec2fdd8625fe1f02e7c877e480 # v1.1.0 sigs.k8s.io/yaml fd68e9863619f6ec2fdd8625fe1f02e7c877e480 # v1.1.0
vbom.ml/util 256737ac55c46798123f754ab7d2c784e2c71783
# DO NOT EDIT BELOW THIS LINE -------- reserved for downstream projects -------- # DO NOT EDIT BELOW THIS LINE -------- reserved for downstream projects --------

5
vendor/github.com/fvbommel/sortorder/README.md generated vendored Normal file
View File

@ -0,0 +1,5 @@
# sortorder [![GoDoc](https://godoc.org/github.com/fvbommel/sortorder?status.svg)](https://godoc.org/github.com/fvbommel/sortorder)
import "github.com/fvbommel/sortorder"
Sort orders and comparison functions.

View File

@ -2,4 +2,4 @@
// //
// Currently, it only implements so-called "natural order", where integers // Currently, it only implements so-called "natural order", where integers
// embedded in strings are compared by value. // embedded in strings are compared by value.
package sortorder // import "vbom.ml/util/sortorder" package sortorder

5
vendor/github.com/fvbommel/sortorder/go.mod generated vendored Normal file
View File

@ -0,0 +1,5 @@
module github.com/fvbommel/sortorder
go 1.13
require github.com/xlab/handysort v0.0.0-20150421192137-fb3537ed64a1

View File

@ -57,7 +57,7 @@ func NaturalLess(str1, str2 string) bool {
if len1, len2 := idx1-nonZero1, idx2-nonZero2; len1 != len2 { if len1, len2 := idx1-nonZero1, idx2-nonZero2; len1 != len2 {
return len1 < len2 return len1 < len2
} }
// If they're not equal, string comparison is correct. // If they're equal, string comparison is correct.
if nr1, nr2 := str1[nonZero1:idx1], str2[nonZero2:idx2]; nr1 != nr2 { if nr1, nr2 := str1[nonZero1:idx1], str2[nonZero2:idx2]; nr1 != nr2 {
return nr1 < nr2 return nr1 < nr2
} }

View File

@ -1,5 +0,0 @@
## util [![GoDoc](https://godoc.org/vbom.ml/util?status.svg)](https://godoc.org/vbom.ml/util)
import "vbom.ml/util"
Go utility packages.

View File

@ -1,5 +0,0 @@
## sortorder [![GoDoc](https://godoc.org/vbom.ml/util/sortorder?status.svg)](https://godoc.org/vbom.ml/util/sortorder)
import "vbom.ml/util/sortorder"
Sort orders and comparison functions.