issadarkthing / gomu

golang TUI music player
GNU General Public License v2.0
159 stars 15 forks source link

Make the app more platform agnostic and bump deps versions #66

Closed mjholub closed 1 year ago

mjholub commented 1 year ago

I have added build constraint in playlist.go, since darwin (amd64 and arm64) doesn't have the ztype Mtime in the Stat_t struct, but instead, it has Mtimespec. Also I replaced the tilde ("\~") in pattern spec in start.go, and added calls to filepath.Join, since e.g. Windows uses a backward slash and probably doesn't recognize "\~". Also I have run go get -u in order to update go.mod and go.sum. Before I did that, Snyk reported that this repo has 11 vulnerabilities with high severity and 4 with medium severity. This fixes most of them. Also, at some point in the future, the unmaintained github.com/disintegration/imaging dependency will have to be replaced by e.g. govips (though I'd need to check whether it works with musl first).