diff options
| author | ewy <ewy0@protonmail.com> | 2026-04-29 01:30:12 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-04-29 01:30:12 +0200 |
| commit | 2b28ee919614d5ddaceda26ce488a0ca4c851cb3 (patch) | |
| tree | df9a9af3f6b37165c9522eefea8456aa1baea9d5 /runner/python/indexer.go | |
| parent | 19f68366eb4a2c01f801b29585fd0a36bdf47488 (diff) | |
simplify the contracts
Diffstat (limited to 'runner/python/indexer.go')
| -rw-r--r-- | runner/python/indexer.go | 4 |
1 files changed, 3 insertions, 1 deletions
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) |
