tilt-dev / tilt-dev/tilt

add documentation on dynamic load() paths

Open
#2,946 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

From the #tilt channel, someone asked:

speaking of load, is there any way to call it with a dynamic path? include doesn't seem to allow for exporting data, and load errors out unless you pass it a string literal

because they wanted to:

loading different variables into the container build based on environment (eg: dev vs staging)

Usually, when we talk to people about why starlark is designed this way, it makes sense to them (given the problems dynamic loads create in the JS module system). But we should have some documentation on this (either in the FAQ or somewhere else)

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

Review the existing FAQ and nearby documentation to find the best location for guidance on dynamic load() paths. Document whether load() accepts dynamic paths, explain the rationale around Starlark and JavaScript module systems, and include the dev-versus-staging use case; the issue is done when this question is answered clearly.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.