Skip to content
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

add hook to reload the env when prompt is displayed, or give user a headsup #23

Open
magnusviri opened this issue Mar 29, 2023 · 4 comments

Comments

@magnusviri
Copy link

I ran tea --sync, which update brewkit 0.11.x to 0.12.0, but it took me awhile to figure out I needed to cd out of my pantry and back in to start using the newer version.

@jhheider
Copy link
Contributor

jhheider commented Mar 29, 2023

related to: pkgxdev/pkgx#484 (comment)

@mxcl
Copy link
Member

mxcl commented Mar 30, 2023

Yeah this is a bug in tea/cli

@mxcl mxcl transferred this issue from pkgxdev/brewkit May 10, 2023
@mxcl mxcl changed the title Detect and warn if a newer brewkit is installed add hook to reload the env when prompt is displayed, or give user a headsup May 10, 2023
@mxcl
Copy link
Member

mxcl commented Jul 12, 2023

the main issue I have implementing this is performance. We could do it easily today but it will mean everytime the prompt displays there is the overhead of tea’s startup time which is slow and deno-dependent.

@rawkode
Copy link

rawkode commented Aug 10, 2023

What if tea stored the hash of every tea.yaml (or package.json, cargo.toml with frontmatter) in ~/.tea and when it was different from what's currently on disk, present the changes and optionally sync?

This is what direnv does.

@mxcl mxcl added enhancement New feature or request and removed enhancement New feature or request labels Oct 20, 2023
@mxcl mxcl transferred this issue from pkgxdev/pkgx Jan 15, 2025
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

No branches or pull requests

4 participants