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

Cache the OpenSSH version if it is needed again #3128

Merged
merged 4 commits into from
Jan 21, 2025

Conversation

afbjorklund
Copy link
Member

@afbjorklund afbjorklund commented Jan 19, 2025

Just to avoid calling it twice:

DEBU[0000] OpenSSH version 8.2.1 detected               
DEBU[0000] AES accelerator seems available, prioritizing [email protected] and [email protected] 
DEBU[0000] OpenSSH version 8.2.1 detected   

Found some hard-coded instances of "ssh", and some duplicated code for $SSH (which should be LIMA_SSH, I guess)

Added some paranoid caching of "stat" info, instead of using just the path like /usr/bin/ssh to cache the version...

pkg/sshutil/sshutil.go Outdated Show resolved Hide resolved
Path string
Size int64
ModTime time.Time
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe over engineering? idk

@AkihiroSuda AkihiroSuda added this to the v1.1.0 (tentative) milestone Jan 20, 2025
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@AkihiroSuda AkihiroSuda merged commit 274d3d9 into lima-vm:master Jan 21, 2025
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants