Skip to content

Conversation

@joshfrench
Copy link
Contributor

@joshfrench joshfrench commented Mar 19, 2023

activate/deactivate hooks have been discussed several times but I haven't seen a PR, so... here's one :)

There are two test failures in test/activate and test/deactivate that I think are just me not fully understanding the stub system, do you mind taking a look and pointing me in the right direction? Thanks so much!


Past discussions:

  1. Closes Hook for pyenv activate  #428
  2. activate/deactivate script hooks? #55
  3. Plugin hooks not working pyenv#2337

@joshfrench joshfrench requested a review from native-api March 19, 2023 22:22
@native-api
Copy link
Member

@pyenv/pyenv-core-maintainers and especially @yyuu : any second opinions on the hook invocation placement?

Copy link
Collaborator

@yyuu yyuu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good 👍

personally i might not apply very much of customization on activate/deactivate to keep shell setup cleaner/simpler, however, i can understand that there are some demands to customize the behavior around them. i’m open to adopt this definitely (esp. with working patch 😉 )

@native-api native-api merged commit fca1241 into pyenv:master Mar 22, 2023
@native-api
Copy link
Member

@joshfrench Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hook for pyenv activate

3 participants