Skip to content

_matching_specs() is called with 2 arguments #40415

@stephenmsachs

Description

@stephenmsachs

Steps to reproduce

$ spack -d buildcache check -s /<somehash>
==> [2023-10-10-17:55:15.829587] Imported buildcache from built-in commands
==> [2023-10-10-17:55:15.832476] Imported buildcache from built-in commands
==> [2023-10-10-17:55:15.833612] Reading config from file /home/stesachs/spack/etc/spack/defaults/config.yaml
Traceback (most recent call last):
  File "/home/stesachs/spack/bin/spack", line 52, in <module>
    sys.exit(main())
  File "/home/stesachs/spack/lib/spack/spack_installable/main.py", line 37, in main
    sys.exit(spack.main.main(argv))
  File "/home/stesachs/spack/lib/spack/spack/main.py", line 1022, in main
    return _main(argv)
  File "/home/stesachs/spack/lib/spack/spack/main.py", line 977, in _main
    return finish_parse_and_run(parser, cmd_name, env_format_error)
  File "/home/stesachs/spack/lib/spack/spack/main.py", line 1005, in finish_parse_and_run
    return _invoke_command(command, parser, args, unknown)
  File "/home/stesachs/spack/lib/spack/spack/main.py", line 646, in _invoke_command
    return_val = command(parser, args)
  File "/home/stesachs/spack/lib/spack/spack/cmd/buildcache.py", line 638, in buildcache
    args.func(args)
  File "/home/stesachs/spack/lib/spack/spack/cmd/buildcache.py", line 432, in check_fn
    specs = _matching_specs(specs, specs)
TypeError: _matching_specs() takes 1 positional argument but 2 were given

Error message

No response

Information on your system

$ spack debug report

  • Spack: 0.21.0.dev0 (6c7b2e1)
  • Python: 3.7.16
  • Platform: linux-amzn2-icelake
  • Concretizer: clingo

General information

  • I have run spack debug report and reported the version of Spack/Python/Platform
  • I have searched the issues of this repo and believe this is not a duplicate
  • I have run the failing commands in debug mode and reported the output

Metadata

Metadata

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions