Skip to content

pip-compile and pip-sync have different options, but single config section #1932

@atugushev

Description

@atugushev

Environment Versions

  1. OS Type: any
  2. Python version: any
  3. pip version: any
  4. pip-tools version: pip-compile, version 7.1.0

Steps to replicate

echo pytz > requirements.in
echo -e "[tool.pip-tools]\ngenerate-hashes = true" > .pip-tools.toml
pip-compile
pip-sync

Expected result

Successful sync.

Actual result

$ pip-compile
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
#    pip-compile --generate-hashes
#
pytz==2023.3 \
    --hash=sha256:1d8ce29db189191fb55338ee6d0387d82ab59f3d00eac103412d64e0ebd0c588 \
    --hash=sha256:a151b3abb88eda1d4e34a9814df37de2a80e301e68ba0fd856fb9b46bfbbbffb
    # via -r requirements.in


$ pip-sync
Usage: pip-sync [OPTIONS] [SRC_FILES]...
Try 'pip-sync -h' for help.

Error: No such config key 'generate_hashes'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions