Skip to content

Commit

Permalink
Add source field in googet spec. (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaohannk authored Jun 18, 2020
1 parent 27d0b06 commit 181060a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions googet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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", ""},
Expand Down
3 changes: 2 additions & 1 deletion googet.goospec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{$version := "2.17.1@1" -}}
{{$version := "2.17.2@1" -}}
{
"name": "googet",
"version": "{{$version}}",
Expand All @@ -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.",
Expand Down
1 change: 1 addition & 0 deletions goolib/goospec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions goolib/goospec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -379,6 +380,7 @@ func TestMarshal(t *testing.T) {
],
"Description": "blah blah",
"Owners": "someone",
"Source": "github",
"Replaces": [
"foo"
],
Expand Down

0 comments on commit 181060a

Please sign in to comment.