File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ import (
1212 "github.com/matzehuels/stacktower/pkg/source"
1313 "github.com/matzehuels/stacktower/pkg/source/javascript"
1414 "github.com/matzehuels/stacktower/pkg/source/metadata"
15+ "github.com/matzehuels/stacktower/pkg/source/php"
1516 "github.com/matzehuels/stacktower/pkg/source/python"
1617 "github.com/matzehuels/stacktower/pkg/source/rust"
17- "github.com/matzehuels/stacktower/pkg/source/php"
1818)
1919
2020type parseOpts struct {
Original file line number Diff line number Diff line change @@ -170,9 +170,15 @@ type p2Version struct {
170170 License []string `json:"license"`
171171 Require map [string ]string `json:"require"`
172172 Support map [string ]string `json:"support"`
173- Source struct { URL string `json:"url"` } `json:"source"`
174- Dist struct { URL string `json:"url"` } `json:"dist"`
175- Authors []struct { Name string `json:"name"` } `json:"authors"`
173+ Source struct {
174+ URL string `json:"url"`
175+ } `json:"source"`
176+ Dist struct {
177+ URL string `json:"url"`
178+ } `json:"dist"`
179+ Authors []struct {
180+ Name string `json:"name"`
181+ } `json:"authors"`
176182}
177183
178184func (v * p2Version ) UnmarshalJSON (b []byte ) error {
@@ -184,9 +190,15 @@ func (v *p2Version) UnmarshalJSON(b []byte) error {
184190 License json.RawMessage `json:"license"`
185191 Require json.RawMessage `json:"require"`
186192 Support map [string ]string `json:"support"`
187- Source struct { URL string `json:"url"` } `json:"source"`
188- Dist struct { URL string `json:"url"` } `json:"dist"`
189- Authors []struct { Name string `json:"name"` } `json:"authors"`
193+ Source struct {
194+ URL string `json:"url"`
195+ } `json:"source"`
196+ Dist struct {
197+ URL string `json:"url"`
198+ } `json:"dist"`
199+ Authors []struct {
200+ Name string `json:"name"`
201+ } `json:"authors"`
190202 }
191203
192204 var rv rawVersion
You can’t perform that action at this time.
0 commit comments