Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
workaround fix for overwriting discovery data media
Browse files Browse the repository at this point in the history
  • Loading branch information
aavshr committed Sep 18, 2023
1 parent aeb33f3 commit c113bca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,11 @@ func validateAppDescription(value string) error {
}

func compareDiscoveryData(discoveryData *shared.DiscoveryData, latestRelease *api.Release, projectDir string) error {
// TODO: fix this behavior
// right now the media is using the same key but the values are different in the request and the response
// this is fine for now because there is no way to update the media except for the CLI
latestRelease.Discovery.Media = discoveryData.Media

if latestRelease.Discovery.ContentRaw != "" && !reflect.DeepEqual(latestRelease.Discovery, discoveryData) {
p := filepath.Join(projectDir, discovery.DiscoveryFilename)
modTime, err := fs.GetFileLastChanged(p)
Expand Down

0 comments on commit c113bca

Please sign in to comment.