Replies: 2 comments
-
I would probably just write a script that uses something like envsubst |
Beta Was this translation helpful? Give feedback.
0 replies
-
Interesting project https://blaze-monorepo.dev/docs/guides/caching and configuration design.
which could be translated into toml as
Then template rendering with cache would be easy to implement. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently dealing with a common challenge in managing dependencies across various files in my project. Specifically, I have separate files, such as
.tools-version
andDockerfile
, that contain the dependency versions. While I use.tools-versions
for local development, I utilize theDockerfile
during Continuous Integration (CI). However, when I update a dependency version, I need to remember to modify each file accordingly, which can sometimes result in oversight.To address this issue, I would like to manage all dependencies' versions in one centralized place and generate other files using templates based on the version information and current architecture. The current architecture aspect is important because some tools are downloaded using curl and I do verify the hash of the downloaded file. The hash would be different on different architectures. I've could use
Makefile
orgit
'spost-checkout
hook. However this approach would introduce lots of boilerplate code and would be hard to maintain. Some generic memoization mechanism is needed. This mechanism should take into account what files where updated and which arguments are used by template.Dockerfile
.tools-version
The main idea for mise is to use existing tera template engine to render arbitrary files and implement caching/memoization mechanism to avoid rendering the files over and over. Since rewriting the files would break incremental builds.
Beta Was this translation helpful? Give feedback.
All reactions