Skip to content

Error when building RPM #985

Closed
Closed

Description

@tim77

When building RPM for Fedora i got this:

*** ERROR: ambiguous python shebang in /usr/lib/python3.7/site-packages/pre_commit/resources/hook-tmpl: #!/usr/bin/env python. Change it to python3 (or python2) explicitly.

Would be great if this fixed.

Activity

  1. asottile commented on Mar 30, 2019

    @asottile
    Member

    The value there doesn't actually matter, it gets replaced out when the file is created on pre-commit install here - for now it's purpose is mostly for editor / linter integration

    If you'd like to make a PR, changing it to env python3 will work if you change both references 👍

  2. asottile commented on Mar 30, 2019

    @asottile
    Member

    Thanks again for the issue and fix 🎉 -- this should make it into the next release that I plan to put together later today

  3. tim77 commented on Mar 30, 2019

    @tim77
    ContributorAuthor

    Awesome. Thank you!

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions