Skip to content

Cli fails with --no-check-version option #4004

Description

@alexzurbonsen

Description

If the --no-check-version option is used, scancode cli fails. There is an unbound local variable outdated.

How To Reproduce

Run any scancode cli command with --no-check-version.

Or add this test to test_cli.py

def test_no_version_check_run_is_successful():
    test_file = test_env.get_test_loc('single/iproute.c')
    result_file = test_env.get_temp_file('json')
    run_scan_click(['--no-check-version', test_file, '--json', result_file], expected_rc=0)

and run

pytest tests/scancode/test_cli.py::test_no_version_check_run_is_successful

System configuration

On latest release (32.3.0). This is easy enough to see from the code. I guess no further details are needed.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions