Skip to content

Commit

Permalink
Merge pull request #60 from chainguard-dev/create-pull-request/patch
Browse files Browse the repository at this point in the history
Export mono/sdk: refs/heads/main
  • Loading branch information
k4leung4 authored Sep 20, 2024
2 parents 73abfb5 + fe7f87b commit aa822f5
Show file tree
Hide file tree
Showing 6 changed files with 196 additions and 744 deletions.
7 changes: 6 additions & 1 deletion events/apk/apk.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ type PushEvent struct {

// APKPath is a convenience method for constructing the full path to the APK.
func (e PushEvent) APKPath() string {
return fmt.Sprintf("%s/%s/%s-%s.apk", e.RepoID, e.Architecture, e.Package, e.Version)
return fmt.Sprintf("%s/%s", e.RepoID, e.APKBasePath())
}

// APKPath is a convenience method for constructing the base path to the APK.
func (e PushEvent) APKBasePath() string {
return fmt.Sprintf("%s/%s-%s.apk", e.Architecture, e.Package, e.Version)
}

type Error struct {
Expand Down
4 changes: 2 additions & 2 deletions proto/platform/apk/v1/test/apk.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ var _ apk.Clients = (*MockAPKClients)(nil)
type MockAPKClients struct {
OnClose error

apkClient MockAPKClient
APKClient MockAPKClient
}

func (m MockAPKClients) APK() apk.APKClient {
return &m.apkClient
return &m.APKClient
}

func (m MockAPKClients) Close() error {
Expand Down
Loading

0 comments on commit aa822f5

Please sign in to comment.