Skip to content

Commit

Permalink
remove duplicate PackageCategory
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen3H committed Dec 19, 2024
1 parent 05c1e3b commit 1380408
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
5 changes: 0 additions & 5 deletions experimental/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ type Package struct {
Latest PackageVersion `json:"latest"`
}

type PackageCategory struct {
Name string `json:"name"`
Slug string `json:"slug"`
}

type PackageVersion struct {
Namespace string `json:"namespace"`
Name string `json:"name"`
Expand Down
7 changes: 4 additions & 3 deletions experimental/submission.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"unicode/utf8"

"github.com/hashicorp/go-version"
"github.com/the-egg-corp/thundergo/common"
"github.com/the-egg-corp/thundergo/util"
)

Expand All @@ -38,9 +39,9 @@ type PackageSubmissionMetadata struct {
}

type AvailableCommunity struct {
Community Community `json:"community"`
Categories []PackageCategory `json:"categories"`
URL string `json:"url"`
Community Community `json:"community"`
Categories []common.PackageCategory `json:"categories"`
URL string `json:"url"`
}

type PackageSubmissionResult struct {
Expand Down
2 changes: 1 addition & 1 deletion tests/exp/submission_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const iconPath = "../test-pkg/icon.png.jpg"
const manifestPath = "../test-pkg/manifest.json"

func TestValidateIcon(t *testing.T) {
//t.Skip()
t.Skip()

icon, err := os.ReadFile(iconPath)
if err != nil {
Expand Down

0 comments on commit 1380408

Please sign in to comment.