-
Notifications
You must be signed in to change notification settings - Fork 665
Run golangci-lint on macOS and Windows; fix lint issues #3586
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
base: master
Are you sure you want to change the base?
Conversation
11e316a
to
5d949a6
Compare
5d949a6
to
687debf
Compare
687debf
to
34584e0
Compare
return err | ||
} | ||
a.instSSHAddress = sshAddr | ||
a.instSSHAddress = store.InstanceSSHAddress |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GetSSHAddress
for Unix and Windows is the same:
lima/pkg/store/instance_unix.go
Lines 14 to 16 in 7224ca4
func GetSSHAddress(_ string) (string, error) { | |
return "127.0.0.1", nil | |
} |
lima/pkg/store/instance_windows.go
Lines 119 to 121 in 7224ca4
func GetSSHAddress(instName string) (string, error) { | |
return "127.0.0.1", nil | |
} |
So, I decided to refactor and return "127.0.0.1"
(const InstanceSSHAddress
).
f07eb9f
to
ad59340
Compare
.github/workflows/test.yml
Outdated
timeout-minutes: 30 | ||
strategy: | ||
matrix: | ||
runs-on: [ubuntu-24.04, macos-15-large, windows-2022-8-cores] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to use larger instances?
917eb08
to
666e2c3
Compare
666e2c3
to
2673f4c
Compare
Signed-off-by: Oleksandr Redko <[email protected]>
2673f4c
to
4ea83b8
Compare
This PR adds
golangci-lint
step to run on Windows and macOS. And fixes a few lint issues that appeared on Windows and macOS.Fixes #3585