Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build with Go v1.17 to support legacy OS X #732

Closed
alanhamlett opened this issue May 18, 2022 · 1 comment
Closed

Build with Go v1.17 to support legacy OS X #732

alanhamlett opened this issue May 18, 2022 · 1 comment

Comments

@alanhamlett
Copy link
Member

alanhamlett commented May 18, 2022

Due to golang/go#50855 (comment), binaries built with Go 1.18 won't run on old OS X versions. We could add a build to the release wakatime-cli-darwin-amd64-go1.17.zip and download that when the plugins detect a legacy OS X version.

When running wakatime-cli built with Go 1.18 on legacy OS X we get this error:

dyld: Symbol not found: _utimensat
  Referenced from: /Users/user/.wakatime/wakatime-cli
  Expected in: flat namespace
@alanhamlett
Copy link
Member Author

Instead of building with legacy Go (we depend on new features in Go 1.18) we're going to modify editor extensions to detect legacy OS X platforms and download an old wakatime-cli release. For now, we're implementing this in Xcode, VS Code, and Sublime Text but can add support to more editor plugins if requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants