3 ms·
>How can you 'store' anything in something as ephemeral as environment variables? Where do these environment variables come from? When are they set? Set at bui
by unlinked_dll 7y ago
>How can you 'store' anything in something as ephemeral as environment variables? Where do these environment variables come from? When are they set?
Set at build time. They come from a build config file/script as part of the build. They're not perfect, but just about every tool ever made has a way of understanding environment variables - the same can't be said for any given config file.
Here's a real world example: I want one source of truth for my build configuration, but my build itself pulls together libraries and binaries in a number of different languages and build systems. How would you handle that with anything but environment variables and a master shell script?
- emmelaich 7y ago> They come from a build config file/script as part of the build. But the script is in VC surely? > How would you handle that with anything but environment variables and a master shell script? Again, where is that master shell script? What args do you give it? My preference is that you have one environment variable, and your config is keyed off that. If that environment variable is not supplied, fail noisily.