fix(Paths): Android support

Add `"android"` to the explicit whitelist of supported operating
systems.  This may resolve incompatibilities with certain Android
environments.
This commit is contained in:
Christopher Allen Lane 2021-10-09 11:27:38 -04:00
parent a500a621a1
commit b67ff8b6a8
2 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,7 @@ func Paths(
}
switch sys {
case "darwin", "linux", "freebsd":
case "android", "darwin", "linux", "freebsd":
paths := []string{}
// don't include the `XDG_CONFIG_HOME` path if that envvar is not set

View File

@ -21,6 +21,7 @@ func TestValidatePathsNix(t *testing.T) {
// specify the platforms to test
oses := []string{
"android",
"darwin",
"freebsd",
"linux",