From a171459a667c09d4194d932d6ef45e85242e79bb Mon Sep 17 00:00:00 2001 From: Tai Groot Date: Tue, 10 Mar 2026 17:54:14 +0000 Subject: [PATCH] fix(flatpak): remove duplicate stubs in flatpak_other.go Functions latestVersion, listUpgrades, upgradeAvailable, versionCmp were declared in both flatpak_other.go and capabilities_other.go, causing build failures on non-Linux platforms. --- flatpak/flatpak_other.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/flatpak/flatpak_other.go b/flatpak/flatpak_other.go index 81a616e..3800abc 100644 --- a/flatpak/flatpak_other.go +++ b/flatpak/flatpak_other.go @@ -62,21 +62,7 @@ func removeRepo(_ context.Context, _ string) error { return snack.ErrUnsupportedPlatform } -func latestVersion(_ context.Context, _ string) (string, error) { - return "", snack.ErrUnsupportedPlatform -} -func listUpgrades(_ context.Context) ([]snack.Package, error) { - return nil, snack.ErrUnsupportedPlatform -} - -func upgradeAvailable(_ context.Context, _ string) (bool, error) { - return false, snack.ErrUnsupportedPlatform -} - -func versionCmp(_ context.Context, _, _ string) (int, error) { - return 0, snack.ErrUnsupportedPlatform -} func upgradePackages(_ context.Context, _ []snack.Target, _ ...snack.Option) (snack.InstallResult, error) { return snack.InstallResult{}, snack.ErrUnsupportedPlatform