Closed conlan0 closed 3 months ago
To fix the failing tests we need to ensure the windows only stuff lives in files named
something_windows.go
and then stub the functions for linux/mac. You can stub them inagent_unix.go
got that done but i think theirs an issue where i import support in main.go here
'case "tray":
if runtime.GOOS == "windows" {
support.InitTrayIcon()
}`
I don't see any stubs. Look at https://github.com/amidaware/rmmagent/blob/b09eaf84de68dfb4f3cb6db6ff364a6745efd943/agent/agent_unix.go#L903 and you'll need to stub all the new systray related windows
okay got it. how do i update its packages now?
You need to also add your go.mod
and go.sum
changes, I don't see those updated. When you installed that systray package on your local machine it would have updated these 2 files.
now its getting the download errors i do lol