Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add source field in googet spec. #79

Merged
merged 3 commits into from
Jun 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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