(platform Platform)
| 90 | } |
| 91 | |
| 92 | func NormalizePlatform(platform Platform) Platform { |
| 93 | goos := strings.ToLower(strings.TrimSpace(platform.GOOS)) |
| 94 | switch goos { |
| 95 | case "mac", "macos", "osx": |
| 96 | goos = "darwin" |
| 97 | } |
| 98 | goarch := strings.ToLower(strings.TrimSpace(platform.GOARCH)) |
| 99 | switch goarch { |
| 100 | case "x64", "x86_64": |
| 101 | goarch = "amd64" |
| 102 | case "aarch64": |
| 103 | goarch = "arm64" |
| 104 | } |
| 105 | return Platform{GOOS: goos, GOARCH: goarch} |
| 106 | } |
| 107 | |
| 108 | func Sync(ctx context.Context, cfg *config.Config, pluginRuntime PluginRuntime) error { |
| 109 | _, errSync := SyncPlatformWithReport(ctx, cfg, pluginRuntime, CurrentPlatform()) |
no outgoing calls
no test coverage detected