@@ -68,7 +68,7 @@ function updateGodepManifest() {
...
@@ -68,7 +68,7 @@ function updateGodepManifest() {
GOPATH="${TMP_GOPATH}:${GOPATH}:${KUBE_ROOT}/staging" godep save ${V} ./... 2>&1 | sed's/^/ /'
GOPATH="${TMP_GOPATH}:${GOPATH}:${KUBE_ROOT}/staging" godep save ${V} ./... 2>&1 | sed's/^/ /'
echo"Rewriting Godeps.json to remove commits that don't really exist because we haven't pushed the prereqs yet"
echo"Rewriting Godeps.json to remove commits that don't really exist because we haven't pushed the prereqs yet"
go run "${KUBE_ROOT}/staging/godeps-json-updater.go"--godeps-file="${TMP_GOPATH}/src/k8s.io/${repo}/Godeps/Godeps.json"--client-go-import-path="k8s.io/${repo}"
go run "${KUBE_ROOT}/staging/godeps-json-updater.go"--godeps-file="${TMP_GOPATH}/src/k8s.io/${repo}/Godeps/Godeps.json"--override-import-path="k8s.io/${repo}"
# commit so that following repos do not see this repo as dirty
# commit so that following repos do not see this repo as dirty
# The entries for k8s.io/apimahcinery are not removed from Godeps.json, though
# The entries for k8s.io/apimahcinery are not removed from Godeps.json, though
# they contain the invalid commit revision. The publish robot will set the
# they contain the invalid commit revision. The publish robot will set the
# correct commit revision.
# correct commit revision.
go run "${KUBE_ROOT}/staging/godeps-json-updater.go"--godeps-file="${CLIENT_REPO_TEMP}/Godeps/Godeps.json"--client-go-import-path="${CLIENT_REPO_FROM_SRC}"--ignored-prefixes="k8s.io/client-go,k8s.io/kubernetes"--rewritten-prefixes="k8s.io/apimachinery"
go run "${KUBE_ROOT}/staging/godeps-json-updater.go"--godeps-file="${CLIENT_REPO_TEMP}/Godeps/Godeps.json"--override-import-path="${CLIENT_REPO_FROM_SRC}"--ignored-prefixes="k8s.io/client-go,k8s.io/kubernetes"--rewritten-prefixes="k8s.io/apimachinery"
godepsFile=flag.String("godeps-file","","absolute path to Godeps.json")
godepsFile=flag.String("godeps-file","","absolute path to Godeps.json")
clientRepoImportPath=flag.String("client-go-import-path","","import path to a version of client-go, e.g., k8s.io/client-go/1.4")
overrideImportPath=flag.String("override-import-path","","import path to be written into the Godeps.json, e.g., k8s.io/client-go")
ignoredPrefixes=flag.StringSlice("ignored-prefixes",[]string{"k8s.io/"},"any godep entry prefixed with the ignored-prefix will be deleted from Godeps.json")
ignoredPrefixes=flag.StringSlice("ignored-prefixes",[]string{"k8s.io/"},"any godep entry prefixed with the ignored-prefix will be deleted from Godeps.json")
rewrittenPrefixes=flag.StringSlice("rewritten-prefixes",[]string{},"any godep entry prefixed with the rewritten-prefix will be filled will dummy rev; overridden by ignored-prefixes")
rewrittenPrefixes=flag.StringSlice("rewritten-prefixes",[]string{},fmt.Sprintf("any godep entry prefixed with the rewritten-prefix will be filled will dummy rev %q; overridden by ignored-prefixes",dummyRev))