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

vhs record unsets $HOME #554

Open
gleachkr opened this issue Dec 6, 2024 · 2 comments
Open

vhs record unsets $HOME #554

gleachkr opened this issue Dec 6, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@gleachkr
Copy link

gleachkr commented Dec 6, 2024

Describe the bug

When I run vhs record, the shell I enter does not have $HOME set. I would expect it to preserve my $HOME.

Setup
Please complete the following information along with version numbers, if applicable.

  • OS: Arch Linux
  • Shell: Bash
  • Terminal Emulator: foot

To Reproduce
Steps to reproduce the behavior:

  1. echo $HOME
  2. vhs record
  3. echo $HOME
  4. See that the variable is empty

Expected behavior

I'd expect $HOME to be the same both times I print it.

@ldemailly
Copy link

ldemailly commented Dec 10, 2024

same/similar issue, on macOS (brew install vhs)

10:05:21 main day10$ vhs record > vhs.tape
10:05:24 main day10$ go run . < 2024-10-input.txt
build cache is required, but could not be located: GOCACHE is not defined and $HOME is not defined

@niko-dunixi
Copy link

I have also noticed this as well on MacOS. I tried with both homebrew (currently 0.8.0) as well go install'd from latest source.

It doesn't seem to be limited to just the $HOME variable, as I noticed $PATH was also sometimes unset.

@meowgorithm meowgorithm added the bug Something isn't working label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants