Caching plugins between execution on docker images (Through gitlab ci) #1518
Unanswered
jacobdonenfeld
asked this question in
Q&A
Replies: 1 comment
-
According to the error message it seems to fail to create the tmp file, but I'm not sure why that happens. Line 183 in a09464b |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Looking to cache the plugin directory between execution on gitlab's CI. Currently running tflint as a pre-commit hook, and running pre-commit on the job. Here is what I am doing, and where I am stuck:
If a previous run's job cache is available, set the tflint plugin path to the known cached plugin directory:
if [ -d ".tflint.d/plugins" ]; then export TFLINT_PLUGIN_DIR=./.tflint.d/plugins; fi
Initialize the plugins, in case they are out of date, or there wasn't a cache:
tflint --init
Slightly unrelated:
pre-commit install-hooks
pre-commit run --all-files || status=$?
The issue I am running into is on running
tflint --init
, the command is running into some missing directory issue:Haven't been able to solve this. Would like to avoid defining the plugins in two locations or any complicated scripting to get this to work.
Thanks in advanced!
Beta Was this translation helpful? Give feedback.
All reactions