configuration of subincluded Tiltfiles
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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