From f30a281e8181463853c56f581391010c62b7c0da Mon Sep 17 00:00:00 2001 From: Devon Stewart Date: Fri, 6 Sep 2024 16:30:31 -0700 Subject: [PATCH] cfg.Project can be nil, which panics --- internal/backends/python/python.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/backends/python/python.go b/internal/backends/python/python.go index bf7b2953..b58343af 100644 --- a/internal/backends/python/python.go +++ b/internal/backends/python/python.go @@ -705,6 +705,10 @@ func makePythonUvBackend() api.LanguageBackend { return nil } + if cfg.Project == nil { + return nil + } + pkgs := map[api.PkgName]api.PkgSpec{} for _, dep := range cfg.Project.Dependencies {