turbo icon indicating copy to clipboard operation
turbo copied to clipboard

Fix default baseBranch in docs

Open mehulkar opened this issue 1 year ago • 1 comments

mehulkar avatar Aug 11 '22 01:08 mehulkar

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
turbo-site ⬜️ Ignored (Inspect) Aug 12, 2022 at 7:35PM (UTC)

vercel[bot] avatar Aug 11 '22 01:08 vercel[bot]

Trying to trace through this, I'm not seeing us actually default to origin/master or origin/main anywhere. I could easily be missing something, but if this is the case then we shouldn't be claiming a default.

Good call. I don't see it being used either. @gsoltis @tknickman @nathanhammond do you know if this config is stil being used? I see it's in the type def:

https://github.com/vercel/turborepo/blob/3837c41bc313d8a9a648dcb0e05bb498541fe234/cli/internal/fs/turbo_json.go#L16

but I don't see any uses of .Base property where ReadTurboJSON() is called

mehulkar avatar Aug 11 '22 22:08 mehulkar

you're correct, we're not using it. git comparisons are either done against the current HEAD or specified inline in the value passed to --filter

gsoltis avatar Aug 11 '22 23:08 gsoltis

Looks like it's been there since the original commit in this history: 6077c5e4894f4fa0a95b01d5cc8f3f103a227b8b, and even at that commit, I don't see it being used.

I can try going through and ripping all this out, but is there any reason to think this is a breaking change? The first commit in this repo is pre 1.0, so I think we can assume that the baseBranch implementation (if there ever was one) has not worked since we hit 1.0.

cc @jaredpalmer if you have historical context or any other advice here!

mehulkar avatar Aug 12 '22 01:08 mehulkar

Should be removed. Was used in JS version pre-acquisition and pre-Go and I guess never removed.

jaredpalmer avatar Aug 12 '22 02:08 jaredpalmer