Skip to content

Commit 1380408

Browse files
committed
remove duplicate PackageCategory
1 parent 05c1e3b commit 1380408

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

experimental/package.go

-5
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ type Package struct {
2222
Latest PackageVersion `json:"latest"`
2323
}
2424

25-
type PackageCategory struct {
26-
Name string `json:"name"`
27-
Slug string `json:"slug"`
28-
}
29-
3025
type PackageVersion struct {
3126
Namespace string `json:"namespace"`
3227
Name string `json:"name"`

experimental/submission.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"unicode/utf8"
1313

1414
"github.com/hashicorp/go-version"
15+
"github.com/the-egg-corp/thundergo/common"
1516
"github.com/the-egg-corp/thundergo/util"
1617
)
1718

@@ -38,9 +39,9 @@ type PackageSubmissionMetadata struct {
3839
}
3940

4041
type AvailableCommunity struct {
41-
Community Community `json:"community"`
42-
Categories []PackageCategory `json:"categories"`
43-
URL string `json:"url"`
42+
Community Community `json:"community"`
43+
Categories []common.PackageCategory `json:"categories"`
44+
URL string `json:"url"`
4445
}
4546

4647
type PackageSubmissionResult struct {

tests/exp/submission_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const iconPath = "../test-pkg/icon.png.jpg"
1313
const manifestPath = "../test-pkg/manifest.json"
1414

1515
func TestValidateIcon(t *testing.T) {
16-
//t.Skip()
16+
t.Skip()
1717

1818
icon, err := os.ReadFile(iconPath)
1919
if err != nil {

0 commit comments

Comments
 (0)