From 36acdacdb21319edf5248b6d5c83310c5f9c1650 Mon Sep 17 00:00:00 2001 From: "Dr. Stefan Schimanski" Date: Sat, 12 Aug 2017 14:34:00 +0200 Subject: [PATCH] Add fake k8s.io/apimachinery --- Gopkg.lock | 82 +++++++++++++++++++ Gopkg.toml | 27 ++++++ .../_staging/k8s.io/apimachinery/Gopkg.lock | 9 ++ .../_staging/k8s.io/apimachinery/Gopkg.toml | 26 ++++++ .../apimachinery/pkg/apimachinery/foo.go | 11 +++ main.go | 9 ++ 6 files changed, 164 insertions(+) create mode 100644 Gopkg.lock create mode 100644 Gopkg.toml create mode 100644 internal/_staging/k8s.io/apimachinery/Gopkg.lock create mode 100644 internal/_staging/k8s.io/apimachinery/Gopkg.toml create mode 100644 internal/_staging/k8s.io/apimachinery/pkg/apimachinery/foo.go create mode 100644 main.go diff --git a/Gopkg.lock b/Gopkg.lock new file mode 100644 index 0000000..a429f06 --- /dev/null +++ b/Gopkg.lock @@ -0,0 +1,82 @@ +# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. + + +[[projects]] + name = "github.com/PuerkitoBio/purell" + packages = ["."] + revision = "0bcb03f4b4d0a9428594752bd2a3b9aa0a9d4bd4" + version = "v1.1.0" + +[[projects]] + branch = "master" + name = "github.com/PuerkitoBio/urlesc" + packages = ["."] + revision = "de5bf2ad457846296e2031421a34e2568e304e35" + +[[projects]] + branch = "master" + name = "github.com/go-openapi/jsonpointer" + packages = ["."] + revision = "779f45308c19820f1a69e9a4cd965f496e0da10f" + +[[projects]] + branch = "master" + name = "github.com/go-openapi/jsonreference" + packages = ["."] + revision = "36d33bfe519efae5632669801b180bf1a245da3b" + +[[projects]] + branch = "master" + name = "github.com/go-openapi/spec" + packages = ["."] + revision = "3faa0055dbbf2110abc1f3b4e3adbb22721e96e7" + +[[projects]] + branch = "master" + name = "github.com/go-openapi/swag" + packages = ["."] + revision = "f3f9494671f93fcff853e3c6e9e948b3eb71e590" + +[[projects]] + branch = "master" + name = "github.com/mailru/easyjson" + packages = ["buffer","jlexer","jwriter"] + revision = "2f5df55504ebc322e4d52d34df6a1f5b503bf26d" + +[[projects]] + branch = "master" + name = "golang.org/x/net" + packages = ["idna"] + revision = "1c05540f6879653db88113bc4a2b70aec4bd491f" + +[[projects]] + branch = "master" + name = "golang.org/x/text" + packages = ["internal/gen","internal/triegen","internal/ucd","secure/bidirule","transform","unicode/bidi","unicode/cldr","unicode/norm","unicode/rangetable","width"] + revision = "b19bf474d317b857955b12035d2c5acb57ce8b01" + +[[projects]] + branch = "v2" + name = "gopkg.in/yaml.v2" + packages = ["."] + revision = "eb3733d160e74a9c7e442f435eb3bea458e1d19f" + +[[projects]] + branch = "master" + name = "k8s.io/apimachinery" + packages = ["pkg/apimachinery"] + revision = "ba3460a322fb8cf078433e121cb43f609caed6ca" + source = "github.com/sttts/k8s-dep-e2e/internal/_staging/k8s.io/apimachinery" + +[[projects]] + branch = "master" + name = "k8s.io/kube-openapi" + packages = ["pkg/aggregator","pkg/util"] + revision = "2e438c503f417bc77f4cae3bb995b3304abef47b" + +[solve-meta] + analyzer-name = "dep" + analyzer-version = 1 + inputs-digest = "333d6e502ac7668590a48f6258fecdde0253e90257e7012b2204f9bfc608b608" + solver-name = "gps-cdcl" + solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml new file mode 100644 index 0000000..9cc1501 --- /dev/null +++ b/Gopkg.toml @@ -0,0 +1,27 @@ +required = ["k8s.io/kube-openapi/pkg/aggregator", "k8s.io/apimachinery/pkg/apimachinery"] + +[[override]] + name = "k8s.io/apimachinery" + source = "github.com/sttts/k8s-dep-e2e/internal/_staging/k8s.io/apimachinery" + +# Gopkg.toml example +# +# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md +# for detailed Gopkg.toml documentation. +# +# required = ["github.com/user/thing/cmd/thing"] +# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] +# +# [[constraint]] +# name = "github.com/user/project" +# version = "1.0.0" +# +# [[constraint]] +# name = "github.com/user/project2" +# branch = "dev" +# source = "github.com/myfork/project2" +# +# [[override]] +# name = "github.com/x/y" +# version = "2.4.0" + diff --git a/internal/_staging/k8s.io/apimachinery/Gopkg.lock b/internal/_staging/k8s.io/apimachinery/Gopkg.lock new file mode 100644 index 0000000..bef2d00 --- /dev/null +++ b/internal/_staging/k8s.io/apimachinery/Gopkg.lock @@ -0,0 +1,9 @@ +# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. + + +[solve-meta] + analyzer-name = "dep" + analyzer-version = 1 + inputs-digest = "ab4fef131ee828e96ba67d31a7d690bd5f2f42040c6766b1b12fe856f87e0ff7" + solver-name = "gps-cdcl" + solver-version = 1 diff --git a/internal/_staging/k8s.io/apimachinery/Gopkg.toml b/internal/_staging/k8s.io/apimachinery/Gopkg.toml new file mode 100644 index 0000000..2e9f8c3 --- /dev/null +++ b/internal/_staging/k8s.io/apimachinery/Gopkg.toml @@ -0,0 +1,26 @@ + +# Gopkg.toml example +# +# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md +# for detailed Gopkg.toml documentation. +# +# required = ["github.com/user/thing/cmd/thing"] +# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] +# +# [[constraint]] +# name = "github.com/user/project" +# version = "1.0.0" +# +# [[constraint]] +# name = "github.com/user/project2" +# branch = "dev" +# source = "github.com/myfork/project2" +# +# [[override]] +# name = "github.com/x/y" +# version = "2.4.0" + + +[[constraint]] + branch = "master" + name = "k8s.io/kube-openapi" diff --git a/internal/_staging/k8s.io/apimachinery/pkg/apimachinery/foo.go b/internal/_staging/k8s.io/apimachinery/pkg/apimachinery/foo.go new file mode 100644 index 0000000..964671c --- /dev/null +++ b/internal/_staging/k8s.io/apimachinery/pkg/apimachinery/foo.go @@ -0,0 +1,11 @@ +package apimachinery + +import ( + "fmt" + + _ "k8s.io/kube-openapi/pkg/aggregator" +) + +func F() { + fmt.Println("Hello World from k8s.io/apimachinery") +} diff --git a/main.go b/main.go new file mode 100644 index 0000000..8b7e2ca --- /dev/null +++ b/main.go @@ -0,0 +1,9 @@ +package main + +import ( + "k8s.io/apimachinery/pkg/apimachinery" +) + +func main() { + apimachinery.F() +}