I have added build constraint in playlist.go, since darwin (amd64 and arm64) doesn't have the ztypeMtime 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).
I have added build constraint in
playlist.go
, since darwin (amd64 and arm64) doesn't have the ztypeMtime
in theStat_t
struct, but instead, it hasMtimespec
. Also I replaced the tilde ("\~") in pattern spec instart.go
, and added calls tofilepath.Join
, since e.g. Windows uses a backward slash and probably doesn't recognize "\~". Also I have rungo 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).