From 872224b2b562135ae19a02e27228245fc60203e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1ll=20Haraldsson?= Date: Wed, 4 Sep 2024 20:40:24 +0000 Subject: [PATCH] Use YAML.jl as JSON parser --- src/deps.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/deps.jl b/src/deps.jl index 629e75a..3e233d4 100644 --- a/src/deps.jl +++ b/src/deps.jl @@ -110,14 +110,14 @@ end function current_packages() cmd = conda_cmd(`list -p $(envdir()) --json`) - pkglist = JSON3.read(cmd) + pkglist = YAML.read(cmd) Dict(normalise_pkg(pkg.name) => pkg for pkg in pkglist) end function current_pip_packages() pkglist = withenv() do cmd = `$(which("pip")) list --format=json` - JSON3.read(cmd) + YAML.read(cmd) end Dict(normalise_pip_pkg(pkg.name) => pkg for pkg in pkglist) end