From b67ff8b6a8167da54ed78ca69b8389b3a2aa8753 Mon Sep 17 00:00:00 2001 From: Christopher Allen Lane Date: Sat, 9 Oct 2021 11:27:38 -0400 Subject: [PATCH] fix(Paths): Android support Add `"android"` to the explicit whitelist of supported operating systems. This may resolve incompatibilities with certain Android environments. --- internal/config/paths.go | 2 +- internal/config/paths_test.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/config/paths.go b/internal/config/paths.go index 157737f..8ce34bc 100644 --- a/internal/config/paths.go +++ b/internal/config/paths.go @@ -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 diff --git a/internal/config/paths_test.go b/internal/config/paths_test.go index 0dd64f5..7590042 100644 --- a/internal/config/paths_test.go +++ b/internal/config/paths_test.go @@ -21,6 +21,7 @@ func TestValidatePathsNix(t *testing.T) { // specify the platforms to test oses := []string{ + "android", "darwin", "freebsd", "linux",