Code Monkey home page Code Monkey logo

Comments (7)

xorpaul avatar xorpaul commented on August 17, 2024 1

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.

xorpaul avatar xorpaul commented on August 17, 2024

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.

jovrum avatar jovrum commented on August 17, 2024

Maybe another potential workaround would be using an overridable environment variable to specify the cachedir.

from g10k.

xorpaul avatar xorpaul commented on August 17, 2024

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.

alexharv074 avatar alexharv074 commented on August 17, 2024

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.

xorpaul avatar xorpaul commented on August 17, 2024

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.

alexharv074 avatar alexharv074 commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.