-
Notifications
You must be signed in to change notification settings - Fork 80
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 Architecture and Uname variable #207
Conversation
✅ Deploy Preview for agent-public-docs canceled.
|
Can you provide the output for 4 operating systems from our support matrix? https://github.com/nginx/agent/blob/main/Makefile#L12 |
please address the unit test failures |
Ubuntu 22
RHEL
SUSE
FREEBSD
|
This PR looks good if you can provide the agent log for FreeBSD and run a |
|
@oliveromahony @ryepup messed up with rebase locally. I will close this PR. I have cloned this to new one :- #239 |
Proposed changes
Currently
architecture
is an empty string, anduname
isuname -m
As part of this PR,
architecture
as uname -m using host information anduname
as uname -a.Call-Out
https://cs.opensource.google/search?q=utsname&ss=go%2Fx%2Fsys&start=11
https://cs.opensource.google/search?q=utsname&ss=go%2Fx%2Fsys&start=1
I cannot find any supported wrapper/util in gopsutil or unix binary that would return
Utsname
struct variables in platform-agnostic manner.So I have added
GetUnixName
function.Checklist
Before creating a PR, run through this checklist and mark each as complete.
CONTRIBUTING
documentREADME.md
)