From c6f121f3c1b7c6ebbafaef52cfb519d0cb8f343b Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Sun, 14 Apr 2019 20:27:52 +0200 Subject: [PATCH] Godeps: switch to vendor directory Signed-off-by: Sebastiaan van Stijn --- Godeps/_workspace/.gitignore | 2 - .../src/github.com/xtgo/uuid/uuid_test.go | 102 ------------------ .../github.com/jehiah/go-strftime/.gitignore | 0 .../github.com/jehiah/go-strftime/LICENSE | 0 .../github.com/jehiah/go-strftime/README.md | 0 .../github.com/jehiah/go-strftime/strftime.go | 0 .../github.com/segmentio/backo-go/.gitmodules | 0 .../github.com/segmentio/backo-go/README.md | 0 .../github.com/segmentio/backo-go/backo.go | 0 .../github.com/tj/docopt/.gitignore | 0 .../github.com/tj/docopt/.travis.yml | 0 .../github.com/tj/docopt/LICENSE | 0 .../github.com/tj/docopt/README.md | 0 .../github.com/tj/docopt/docopt.go | 0 .../github.com/tj/docopt/test_golang.docopt | 0 .../github.com/tj/docopt/testcases.docopt | 0 .../github.com/xtgo/uuid/AUTHORS | 0 .../github.com/xtgo/uuid/LICENSE | 0 .../github.com/xtgo/uuid/uuid.go | 0 19 files changed, 104 deletions(-) delete mode 100644 Godeps/_workspace/.gitignore delete mode 100644 Godeps/_workspace/src/github.com/xtgo/uuid/uuid_test.go rename {Godeps/_workspace/src => vendor}/github.com/jehiah/go-strftime/.gitignore (100%) rename {Godeps/_workspace/src => vendor}/github.com/jehiah/go-strftime/LICENSE (100%) rename {Godeps/_workspace/src => vendor}/github.com/jehiah/go-strftime/README.md (100%) rename {Godeps/_workspace/src => vendor}/github.com/jehiah/go-strftime/strftime.go (100%) rename {Godeps/_workspace/src => vendor}/github.com/segmentio/backo-go/.gitmodules (100%) rename {Godeps/_workspace/src => vendor}/github.com/segmentio/backo-go/README.md (100%) rename {Godeps/_workspace/src => vendor}/github.com/segmentio/backo-go/backo.go (100%) rename {Godeps/_workspace/src => vendor}/github.com/tj/docopt/.gitignore (100%) rename {Godeps/_workspace/src => vendor}/github.com/tj/docopt/.travis.yml (100%) rename {Godeps/_workspace/src => vendor}/github.com/tj/docopt/LICENSE (100%) rename {Godeps/_workspace/src => vendor}/github.com/tj/docopt/README.md (100%) rename {Godeps/_workspace/src => vendor}/github.com/tj/docopt/docopt.go (100%) rename {Godeps/_workspace/src => vendor}/github.com/tj/docopt/test_golang.docopt (100%) rename {Godeps/_workspace/src => vendor}/github.com/tj/docopt/testcases.docopt (100%) rename {Godeps/_workspace/src => vendor}/github.com/xtgo/uuid/AUTHORS (100%) rename {Godeps/_workspace/src => vendor}/github.com/xtgo/uuid/LICENSE (100%) rename {Godeps/_workspace/src => vendor}/github.com/xtgo/uuid/uuid.go (100%) diff --git a/Godeps/_workspace/.gitignore b/Godeps/_workspace/.gitignore deleted file mode 100644 index f037d68..0000000 --- a/Godeps/_workspace/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/pkg -/bin diff --git a/Godeps/_workspace/src/github.com/xtgo/uuid/uuid_test.go b/Godeps/_workspace/src/github.com/xtgo/uuid/uuid_test.go deleted file mode 100644 index 3cef4a3..0000000 --- a/Godeps/_workspace/src/github.com/xtgo/uuid/uuid_test.go +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) 2012 The gocql Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package uuid - -import ( - "bytes" - "testing" -) - -func TestNil(t *testing.T) { - var uuid UUID - want, got := "00000000-0000-0000-0000-000000000000", uuid.String() - if want != got { - t.Fatalf("TestNil: expected %q got %q", want, got) - } -} - -var tests = []struct { - input string - variant int - version int -}{ - {"b4f00409-cef8-4822-802c-deb20704c365", VariantIETF, 4}, - {"f81d4fae-7dec-11d0-a765-00a0c91e6bf6", VariantIETF, 1}, - {"00000000-7dec-11d0-a765-00a0c91e6bf6", VariantIETF, 1}, - {"3051a8d7-aea7-1801-e0bf-bc539dd60cf3", VariantFuture, 1}, - {"3051a8d7-aea7-2801-e0bf-bc539dd60cf3", VariantFuture, 2}, - {"3051a8d7-aea7-3801-e0bf-bc539dd60cf3", VariantFuture, 3}, - {"3051a8d7-aea7-4801-e0bf-bc539dd60cf3", VariantFuture, 4}, - {"3051a8d7-aea7-3801-e0bf-bc539dd60cf3", VariantFuture, 5}, - {"d0e817e1-e4b1-1801-3fe6-b4b60ccecf9d", VariantNCSCompat, 0}, - {"d0e817e1-e4b1-1801-bfe6-b4b60ccecf9d", VariantIETF, 1}, - {"d0e817e1-e4b1-1801-dfe6-b4b60ccecf9d", VariantMicrosoft, 0}, - {"d0e817e1-e4b1-1801-ffe6-b4b60ccecf9d", VariantFuture, 0}, -} - -func TestPredefined(t *testing.T) { - for i := range tests { - uuid, err := Parse(tests[i].input) - if err != nil { - t.Errorf("Parse #%d: %v", i, err) - continue - } - - if str := uuid.String(); str != tests[i].input { - t.Errorf("String #%d: expected %q got %q", i, tests[i].input, str) - continue - } - - if variant := uuid.Variant(); variant != tests[i].variant { - t.Errorf("Variant #%d: expected %d got %d", i, tests[i].variant, variant) - } - - if tests[i].variant == VariantIETF { - if version := uuid.Version(); version != tests[i].version { - t.Errorf("Version #%d: expected %d got %d", i, tests[i].version, version) - } - } - } -} - -func TestNewRandom(t *testing.T) { - for i := 0; i < 20; i++ { - uuid := NewRandom() - - if variant := uuid.Variant(); variant != VariantIETF { - t.Errorf("wrong variant. expected %d got %d", VariantIETF, variant) - } - if version := uuid.Version(); version != 4 { - t.Errorf("wrong version. expected %d got %d", 4, version) - } - } -} - -func TestNewTime(t *testing.T) { - var node []byte - timestamp := uint64(0) - for i := 0; i < 20; i++ { - uuid := NewTime() - - if variant := uuid.Variant(); variant != VariantIETF { - t.Errorf("wrong variant. expected %d got %d", VariantIETF, variant) - } - if version := uuid.Version(); version != 1 { - t.Errorf("wrong version. expected %d got %d", 1, version) - } - - if n := uuid.Node(); !bytes.Equal(n, node) && i > 0 { - t.Errorf("wrong node. expected %x, got %x", node, n) - } else if i == 0 { - node = n - } - - ts := uuid.Timestamp() - if ts < timestamp { - t.Errorf("timestamps must grow") - } - timestamp = ts - } -} diff --git a/Godeps/_workspace/src/github.com/jehiah/go-strftime/.gitignore b/vendor/github.com/jehiah/go-strftime/.gitignore similarity index 100% rename from Godeps/_workspace/src/github.com/jehiah/go-strftime/.gitignore rename to vendor/github.com/jehiah/go-strftime/.gitignore diff --git a/Godeps/_workspace/src/github.com/jehiah/go-strftime/LICENSE b/vendor/github.com/jehiah/go-strftime/LICENSE similarity index 100% rename from Godeps/_workspace/src/github.com/jehiah/go-strftime/LICENSE rename to vendor/github.com/jehiah/go-strftime/LICENSE diff --git a/Godeps/_workspace/src/github.com/jehiah/go-strftime/README.md b/vendor/github.com/jehiah/go-strftime/README.md similarity index 100% rename from Godeps/_workspace/src/github.com/jehiah/go-strftime/README.md rename to vendor/github.com/jehiah/go-strftime/README.md diff --git a/Godeps/_workspace/src/github.com/jehiah/go-strftime/strftime.go b/vendor/github.com/jehiah/go-strftime/strftime.go similarity index 100% rename from Godeps/_workspace/src/github.com/jehiah/go-strftime/strftime.go rename to vendor/github.com/jehiah/go-strftime/strftime.go diff --git a/Godeps/_workspace/src/github.com/segmentio/backo-go/.gitmodules b/vendor/github.com/segmentio/backo-go/.gitmodules similarity index 100% rename from Godeps/_workspace/src/github.com/segmentio/backo-go/.gitmodules rename to vendor/github.com/segmentio/backo-go/.gitmodules diff --git a/Godeps/_workspace/src/github.com/segmentio/backo-go/README.md b/vendor/github.com/segmentio/backo-go/README.md similarity index 100% rename from Godeps/_workspace/src/github.com/segmentio/backo-go/README.md rename to vendor/github.com/segmentio/backo-go/README.md diff --git a/Godeps/_workspace/src/github.com/segmentio/backo-go/backo.go b/vendor/github.com/segmentio/backo-go/backo.go similarity index 100% rename from Godeps/_workspace/src/github.com/segmentio/backo-go/backo.go rename to vendor/github.com/segmentio/backo-go/backo.go diff --git a/Godeps/_workspace/src/github.com/tj/docopt/.gitignore b/vendor/github.com/tj/docopt/.gitignore similarity index 100% rename from Godeps/_workspace/src/github.com/tj/docopt/.gitignore rename to vendor/github.com/tj/docopt/.gitignore diff --git a/Godeps/_workspace/src/github.com/tj/docopt/.travis.yml b/vendor/github.com/tj/docopt/.travis.yml similarity index 100% rename from Godeps/_workspace/src/github.com/tj/docopt/.travis.yml rename to vendor/github.com/tj/docopt/.travis.yml diff --git a/Godeps/_workspace/src/github.com/tj/docopt/LICENSE b/vendor/github.com/tj/docopt/LICENSE similarity index 100% rename from Godeps/_workspace/src/github.com/tj/docopt/LICENSE rename to vendor/github.com/tj/docopt/LICENSE diff --git a/Godeps/_workspace/src/github.com/tj/docopt/README.md b/vendor/github.com/tj/docopt/README.md similarity index 100% rename from Godeps/_workspace/src/github.com/tj/docopt/README.md rename to vendor/github.com/tj/docopt/README.md diff --git a/Godeps/_workspace/src/github.com/tj/docopt/docopt.go b/vendor/github.com/tj/docopt/docopt.go similarity index 100% rename from Godeps/_workspace/src/github.com/tj/docopt/docopt.go rename to vendor/github.com/tj/docopt/docopt.go diff --git a/Godeps/_workspace/src/github.com/tj/docopt/test_golang.docopt b/vendor/github.com/tj/docopt/test_golang.docopt similarity index 100% rename from Godeps/_workspace/src/github.com/tj/docopt/test_golang.docopt rename to vendor/github.com/tj/docopt/test_golang.docopt diff --git a/Godeps/_workspace/src/github.com/tj/docopt/testcases.docopt b/vendor/github.com/tj/docopt/testcases.docopt similarity index 100% rename from Godeps/_workspace/src/github.com/tj/docopt/testcases.docopt rename to vendor/github.com/tj/docopt/testcases.docopt diff --git a/Godeps/_workspace/src/github.com/xtgo/uuid/AUTHORS b/vendor/github.com/xtgo/uuid/AUTHORS similarity index 100% rename from Godeps/_workspace/src/github.com/xtgo/uuid/AUTHORS rename to vendor/github.com/xtgo/uuid/AUTHORS diff --git a/Godeps/_workspace/src/github.com/xtgo/uuid/LICENSE b/vendor/github.com/xtgo/uuid/LICENSE similarity index 100% rename from Godeps/_workspace/src/github.com/xtgo/uuid/LICENSE rename to vendor/github.com/xtgo/uuid/LICENSE diff --git a/Godeps/_workspace/src/github.com/xtgo/uuid/uuid.go b/vendor/github.com/xtgo/uuid/uuid.go similarity index 100% rename from Godeps/_workspace/src/github.com/xtgo/uuid/uuid.go rename to vendor/github.com/xtgo/uuid/uuid.go