Skip to content

init-pants action does not respect pants_bin_name option #9

Open
@clydebw

Description

@clydebw

I'm using the pants_bin_name option to point Pants to ./pants-bin. I've created my own pants script, which does two things:

  • Refreshes a token to access our private CodeArtifact Python package index.
  • Calls pants-bin, passing in all arguments that were provided to the pants script.

This allows us to keep CodeArtifact authenticated and use Pants in the standard way.

Right now I don't think the init-pants GitHub Action respects pants_bin_name option, and instead looks directly in ./pants, which prevents us from using the latest version of this GitHub Action. (I might be wrong here, I'm pretty new to Pants)

Does it make sense to change the behaviour of this GitHub Action to check what pants_bin_name is (or perhaps the version of Pants), instead of having a look inside the pants script itself? If there is a recommended approach, I'm quite happy to attempt this change myself!

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions