From 2dbe1ca006b937a4c6f902901e1d7e26b1014840 Mon Sep 17 00:00:00 2001 From: stephen mcquay Date: Fri, 2 Mar 2018 23:23:28 -0800 Subject: [PATCH] Namespace is not needed We should be able to parse out the Path from the URL and use that as the namespace. --- meta.go | 1 - meta_test.go | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/meta.go b/meta.go index fade179..a4d9ace 100644 --- a/meta.go +++ b/meta.go @@ -10,7 +10,6 @@ type Meta struct { Name Name `json:"name"` Version Version `json:"version"` Description string `json:"description"` - Namespace string `json:"namespace"` Remote url.URL `json:"remote"` } diff --git a/meta_test.go b/meta_test.go index 4b20c3b..07038e4 100644 --- a/meta_test.go +++ b/meta_test.go @@ -23,16 +23,6 @@ func TestValid(t *testing.T) { }, ok: true, }, - { - label: "valid with namespace", - m: Meta{ - Name: "heat", - Version: "1.1.0", - Description: "some description", - Namespace: "some/namespace", - }, - ok: true, - }, { label: "missing name", m: Meta{ @@ -78,7 +68,6 @@ func TestJsonRoundTrip(t *testing.T) { Name: "heat", Version: "1.1.0", Description: "make heat using cpus", - Namespace: "/darwin/amd64", } buf := &bytes.Buffer{}