Comments (7)
Yep, that should do what you want, if you're only using the puppetfile mode.
I'm also not sure why this feature hasn't made it to the README 🤔
from g10k.
Sure, I'll look into it.
In the meantime you could use an alias on your dev laptop that uses a different cachedir
Something like:
alias g10k="g10k -cachedir /tmp/foobar"
from g10k.
Maybe another potential workaround would be using an overridable environment variable to specify the cachedir
.
from g10k.
There's already
g10k_cachedir=./tmp
, but that is only available in puppetfile mode.
I can also add that to the config mode.
from g10k.
So, I just run:
export g10k_cachedir=/var/tmp
And that will be my cachedir when I later run:
g10k -puppetfile
?
If so, that's perfect.
Maybe mention this awesomeness in the README?
from g10k.
I added a hint to the README.
The environment variable g10k_cachedir
can now also override the :cachedir
setting from the g10k YAML config and also takes precedence over the -cachedir
CLI parameter.
https://github.com/xorpaul/g10k/releases/tag/v0.3.12
Can you think of another reason a special config file would be helpful or can I close this issue?
from g10k.
I suppose if there is just one parameter to set, environment variables are fine, whereas if you had to set a few of these parameters, then a config file probably would make sense. Right now, an environment variable is perfect for me.
from g10k.
Related Issues (20)
- possibly unsafe use of /tmp for cache directory
- Distinct SSH keys don't work.
- Distinct SSH keys don't work HOT 8
- Branch filtering doesn't work as expected HOT 7
- Use ssh-agent to get key password HOT 7
- Travis-ci: build is failing on AMD64 HOT 2
- Yaml instead of Puppetfile? HOT 5
- "deploy module" appears to update the entire environment anyway? HOT 4
- retry with `main` as a default branch if `master` is not available HOT 4
- Purge does not work HOT 14
- make `-check4update` work again HOT 1
- Changing a remote's Git URL doesn't update the cache HOT 5
- Deprecation warnings go 17.1
- Deprecation warnings go 17.1 HOT 1
- Can't build g10k for OSX Monterey
- add flag to keep .git directories HOT 3
- -clonegit unexpectedly fails with commit refs HOT 2
- Support git module with both branch and ref specified HOT 2
- forge code does not accept http 200 code without reason
- syncing multiple git sources with same branches fails HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from g10k.