-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix: #14 to support some arch linux #15
Conversation
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.
as codeview comment. please reupdate, and keep one git commit with git reset --soft
command. thanks.
user/config_openssl.go
Outdated
if e != nil { | ||
prefix = OTHERS_BINARY_PREFIX | ||
} | ||
this.Openssl = prefix + "/libssl.so.1.1" |
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.
please use filepath.Join()
to concatenate strings.
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.
of course, I prefer to use git rebase -i HEAD~3
could I do it that way ?
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.
yes, try it.
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.
Done
user/probe_gnutls.go
Outdated
switch this.conf.(*GnutlsConfig).elfType { | ||
case ELF_TYPE_BIN: | ||
binaryPath = this.conf.(*GnutlsConfig).Curlpath | ||
case ELF_TYPE_SO: | ||
binaryPath = this.conf.(*GnutlsConfig).Gnutls | ||
default: | ||
//如果没找到 | ||
binaryPath = "/lib/x86_64-linux-gnu/libgnutls.so.30" | ||
binaryPath = prefix + "/libgnutls.so.30" |
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.
keep origin value due binaryPath
is certain from config_*
struct.
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.
keep origin value due
binaryPath
is certain fromconfig_*
struct.
Sorry I missed to understand this comment, why the logic should change here?
user/probe_gnutls.go
Outdated
switch this.conf.(*GnutlsConfig).elfType { | ||
case ELF_TYPE_BIN: | ||
binaryPath = this.conf.(*GnutlsConfig).Curlpath | ||
case ELF_TYPE_SO: | ||
binaryPath = this.conf.(*GnutlsConfig).Gnutls | ||
default: | ||
//如果没找到 | ||
binaryPath = "/lib/x86_64-linux-gnu/libgnutls.so.30" | ||
binaryPath = filepath.Join(prefix, "libgnutls.so.30") |
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.
please rollback this code block. search .so path must be finished by config_ . probe_module do not choose so_ ,just use a default value.
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.
got it. THX
Rollback and fixed |
LGTM, thanks. |
fix: #14 by changing the root dir.