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.
This commit is contained in:
2026-03-10 17:54:14 +00:00
parent 84e4f8e2ff
commit a171459a66

View File

@@ -62,21 +62,7 @@ func removeRepo(_ context.Context, _ string) error {
return snack.ErrUnsupportedPlatform 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) { func upgradePackages(_ context.Context, _ []snack.Target, _ ...snack.Option) (snack.InstallResult, error) {
return snack.InstallResult{}, snack.ErrUnsupportedPlatform return snack.InstallResult{}, snack.ErrUnsupportedPlatform