tilt-dev / tilt-dev/tilt

configuration of subincluded Tiltfiles

Open
#3,787 3 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Go
Stars
10.1k
Forks
413
Avg merge
1d 10h
Merged PRs (30d)
6

Description

A question we've gotten a few times in the Tilt channel:

is there any way to access config vars (loaded from tilt_config.json) in a Tiltfile loaded with include?

The problem is that if you try to call config.parse() in more than one Tiltfile, you get

config.parse can only be called from one Tiltfile working directory per run. It was called from /home/nick/src/tilt.build and /home/nick/src/tilt.build/src

Poking at this, I'm not totally sure why this error exists or how configs are supposed to work in the presence of multiple Tiltfiles.

@landism do you remember the history behind this?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how config.parse() handles tilt_config.json and how included Tiltfiles are loaded. Examine why config.parse() rejects multiple Tiltfile working directories, then determine the intended behavior for configuration in subincluded Tiltfiles. Done should establish and verify a clear configuration behavior for multiple Tiltfiles.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.