diff --git a/googet.go b/googet.go index 26177bd..f487465 100644 --- a/googet.go +++ b/googet.go @@ -283,6 +283,7 @@ func info(ps *goolib.PkgSpec, r string) { {"Repo", path.Base(r)}, {"Authors", ps.Authors}, {"Owners", ps.Owners}, + {"Source", ps.Source}, {"Description", ps.Description}, {"Dependencies", ""}, {"ReleaseNotes", ""}, diff --git a/googet.goospec b/googet.goospec index be1ce05..726c156 100644 --- a/googet.goospec +++ b/googet.goospec @@ -1,4 +1,4 @@ -{{$version := "2.17.1@1" -}} +{{$version := "2.17.2@1" -}} { "name": "googet", "version": "{{$version}}", @@ -13,6 +13,7 @@ "path": "install.ps1" }, "releaseNotes": [ + "2.17.2 - Add Source field in GooGet Spec", "2.17.1 - Use the root directory to reference GooGet's lock file.", "2.17.0 - Update lock functionality.", "2.16.7 - Add a status code check for HTTP responses.", diff --git a/goolib/goospec.go b/goolib/goospec.go index 2b974dc..631e4af 100644 --- a/goolib/goospec.go +++ b/goolib/goospec.go @@ -79,6 +79,7 @@ type PkgSpec struct { License string `json:",omitempty"` Authors string `json:",omitempty"` Owners string `json:",omitempty"` + Source string `json:",omitempty"` Tags map[string][]byte `json:",omitempty"` PkgDependencies map[string]string `json:",omitempty"` Replaces []string diff --git a/goolib/goospec_test.go b/goolib/goospec_test.go index 62c0253..0149990 100644 --- a/goolib/goospec_test.go +++ b/goolib/goospec_test.go @@ -359,6 +359,7 @@ func TestMarshal(t *testing.T) { ReleaseNotes: []string{"1.2.3@4 - something new", "1.2.3@4 - something"}, Description: "blah blah", Owners: "someone", + Source: "github", Replaces: []string{"foo"}, Conflicts: []string{"bar"}, Install: ExecFile{ @@ -379,6 +380,7 @@ func TestMarshal(t *testing.T) { ], "Description": "blah blah", "Owners": "someone", + "Source": "github", "Replaces": [ "foo" ],