Nix run with "git+ssh" input not running latest version

Has anyone encountered issues with the nix run command, where if you’re using a “git+ssh” input, it doesn’t run the latest version of the package?

I have a private repo on Github that I’m using the “git+ssh” input to access. When I run the command git run "git+ssh://git@github.com/myuser/app.git" it runs an older version of the package instead of the latest.

Some Additional Information:

If I run nix eval --raw on the “git+ssh” input the output matches the output if I clone the repo and run nix eval --raw with input from the flake on disk. I find then that the results with nix eval —raw and nix run are inconsistent when using the “git+ssh” as input. Nix eval is working as expected, and nix run is not.

> nix eval --raw "git+ssh://git@github.com/myuser/app.git"
/nix/store/369p7255b7zldnq4dmn5viy4aax3l4kh-python3.12-app-0.2.0

> nix eval --raw .
/nix/store/369p7255b7zldnq4dmn5viy4aax3l4kh-python3.12-app-0.2.0

Lastly, if I make the repo public and use the Github input, everything works correctly and it runs the latest version.

Anyone have an idea of how I can fix this?

I forget if flakes are subject to tarball-ttl, but you can try --option tarball-ttl 0 ?