#Is there a (better!) way to cache only one line of a .WithExec() container?
1 messages · Page 1 of 1 (latest)
@past siren are you trying to make sure the latest git commit for a given git branch or tag is always pulled?
Wrong Ben :p
oh no sorry!!
are you trying to make sure the latest git commit for a given git branch or tag is always pulled?
That's a solid approach in general.
But if you're using the WithExec() to call git, you could use theGit core function instead with head /branch and tree.
what you were thinking @hybrid fossil ? 👆
yeah normally if you use core git API, you don't need cache buster. But I'm thinking maybe they execute git in a container?
yep, they mention WithExec so assume were doing in a container, showing Git alternative.