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

Evaluation caching doesn't work for git+ssh scheme inputs #1637

Open
thenonameguy opened this issue Dec 8, 2024 · 0 comments
Open

Evaluation caching doesn't work for git+ssh scheme inputs #1637

thenonameguy opened this issue Dec 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@thenonameguy
Copy link
Contributor

Describe the bug
git+ssh scheme devenv.yaml inputs do not get updated after devenv update $the-input, when using direnv automatic shell activation.

To reproduce

Full repro case TBD, but here is the gist of it.

inputs:
  backend:
    url: git+ssh://git@github.com/some-private/devenv-git-repo?ref=feat/redacted
    flake: false
  enterShell = "ln -sf ${inputs.backend} ./backend";

After running devenv update backend, I would expect the symlink to be updated, but it doesn't.

Calling shell --refresh-eval-cache fixes the issue, while hinting at the problem:

❯ devenv shell --refresh-eval-cache
• Building shell ...
warning: could not update mtime for file '/Users/kszabo/.cache/nix/gitv3/00ndysgdshg9raghh2b530ydhl9x68xr15vkiyabdfa7lc77h4ja-shallow/refs/heads/feat/redacted': error:
       error: changing modification time of '"/Users/kszabo/.cache/nix/gitv3/00ndysgdshg9raghh2b530ydhl9x68xr15vkiyabdfa7lc77h4ja-shallow/refs/heads/feat/redacted"': No such file or directory

Version

devenv 1.3.1 (aarch64-darwin)
@thenonameguy thenonameguy added the bug Something isn't working label Dec 8, 2024
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

1 participant