-
Notifications
You must be signed in to change notification settings - Fork 5
allow loading poetry path #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: release/v2
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,6 +34,11 @@ inputs: | |
| deps. | ||
| required: false | ||
| default: "true" | ||
| load-poetry-path: | ||
| description: > | ||
| Set to "true" to add the path to the poetry executable to the PATH. | ||
| required: false | ||
| default: "false" | ||
| runs: | ||
| using: composite | ||
| steps: | ||
|
|
@@ -112,6 +117,11 @@ runs: | |
| ARG_INSTALL: "${{ inputs.install-project != 'true' && '--no-root' || '' }}" | ||
| working-directory: ${{ inputs.working-directory }} | ||
|
|
||
| - name: Load poetry path | ||
| run: | | ||
| echo "$(poetry env info -p)/bin" >> "${GITHUB_PATH}" | ||
| if: "${{ inputs.load-poetry-path == 'true' }}" | ||
|
Comment on lines
+120
to
+123
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As an alternative, what about just using
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This also works, but third-party scripts might expect the "binary" name to be available without having to go through poetry. (typically the case when installing ansible for example)
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is that an actual use case yet? Link? |
||
|
|
||
| # For debugging---let's just check what we're working with. | ||
| - name: Dump virtual environment | ||
| run: | | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not default to
trueas a sane default?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly wanted to avoid changing the action default behaviour. WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feels like nothing would change for existing consumers of the action if we default to
true.