tilt icon indicating copy to clipboard operation
tilt copied to clipboard

config.parse should take a file name

Open nicks opened this issue 3 years ago • 1 comments

Current Behavior

Right now, config.parse() reads tilt_config.json from the current directory, and merges that argument list with what you specified on the command-line.

https://github.com/tilt-dev/tilt/blob/master/internal/tiltfile/config/config.go#L15

Describe the Feature You Want

In monorepos, you often want multiple tiltfiles to share the same tilt_config.json.

config.parse() should have some way to change where it's pulling the arguments from.

Additional context The simplest solution would be to have something like:

config.parse('./path/to/shared/config.json')

to specify where to load the file from.

nicks avatar Aug 17 '22 19:08 nicks

It would be good, to have this. Or at least control the configuration path via an environment variable, e.g. TILT_CONFIG_PATH=path/to/file.json. I'm looking for this as I want a different configuration for CI versus local developers.

fsaintjacques avatar Apr 25 '23 15:04 fsaintjacques