Skip to content

[BUG] gocyclo not found despite installation in scans run via uvx command still report #469

Description

@meyrevived

Bug Description

AgentReady runs via uvx in an isolated Python venv that does not inherit the user's shell PATH.
gocyclo was installed at ~/go/bin/gocyclo and works from the shell, but the venv cannot see it.

To Reproduce

  1. Use a Go repo for the scan
  2. Verify gocyclo does not exist in $GOPATH
  3. Run the documented uvx --from git+https://github.com/ambient-code/agentready agentready -- assess . command
  4. Scan report and scan output for mentions of gocyclo
  5. Run go install github.com/fzipp/gocyclo/cmd/gocyclo@latest
  6. Repeat steps 2-4

Expected Behavior

While gocyclo is not installed, scan output contains Subprocess error: [Errno 2] No such file or directory: 'gocyclo' and the scan report contain N/A findings regarding cyclomatic_complexity.

Once gocyclo is installed, the output contains no errors regarding gocyclo and the report has an assessment for cyclomatic_complexity.

Actual Behavior

AgentReady continues to function as it did before gocyclo was installed.
A workaround, to run PATH="$HOME/go/bin:$PATH" uvx --from git+https://github.com/ambient-code/agentready agentready -- assess . was the only thing that worked.

Environment

  • OS: Fedora CSB 42 (64 bit)
  • Version: v2.40.0
  • Python Version: 3.14.4

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions