Skip to content

engine: paramaterize Tiltfile#913

Merged
jazzdan merged 4 commits into
masterfrom
jazzdan/multiple_tiltfiles
Jan 3, 2019
Merged

engine: paramaterize Tiltfile#913
jazzdan merged 4 commits into
masterfrom
jazzdan/multiple_tiltfiles

Conversation

@jazzdan

@jazzdan jazzdan commented Jan 3, 2019

Copy link
Copy Markdown
Contributor

This allows us to specify a different Tiltfile to load with a command line flag.

@nicks

nicks commented Jan 3, 2019

Copy link
Copy Markdown
Contributor

AFAIR, this code is super-sensitive to absolute paths vs relative paths. you need both and to use them consistently -- absolute for certain cases (like equality checking) and relative for other cases (like error messages)

That's why the old code used tiltfile2.FileName to Load(). It's a relative path. You've changed it so that one call uses a relative path and the other uses an absolute path, which is going to lead to weird issues

i think what we probably need to do is store the relative path on the engine state, and add a method for the absolute path. Does that make sense? I can explain more in person; it's pretty finicky.

@jazzdan

jazzdan commented Jan 3, 2019

Copy link
Copy Markdown
Contributor Author

Yup, that makes sense. Will do.

@jazzdan
jazzdan force-pushed the jazzdan/multiple_tiltfiles branch from 03d82be to 2a864d2 Compare January 3, 2019 22:48
@jazzdan
jazzdan merged commit 05b6c45 into master Jan 3, 2019
@nicks
nicks deleted the jazzdan/multiple_tiltfiles branch March 31, 2021 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants