From 2b28ee919614d5ddaceda26ce488a0ca4c851cb3 Mon Sep 17 00:00:00 2001 From: ewy Date: Wed, 29 Apr 2026 01:30:12 +0200 Subject: simplify the contracts --- runner/python/indexer.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'runner/python/indexer.go') diff --git a/runner/python/indexer.go b/runner/python/indexer.go index 3a61f7e..98502ca 100644 --- a/runner/python/indexer.go +++ b/runner/python/indexer.go @@ -14,7 +14,7 @@ type pyproj struct { } } -func (p python) Index(path string, f fs.FS, runners []model.Runner) ([]model.Target, error) { +func (p *python) Index(path string, f fs.FS, runners []model.Runner) ([]model.Target, error) { for _, pt := range VenvPaths { if stat, err := fs.Stat(f, filepath.Join(pt)); err == nil { if stat.IsDir() { @@ -29,6 +29,8 @@ func (p python) Index(path string, f fs.FS, runners []model.Runner) ([]model.Tar return nil, err } + p.files[path] = filepath.Join(path, "pyproject.toml") + pp := &pyproj{} err = toml.Unmarshal(content, pp) -- cgit v1.3.1