这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@gsoltis
Copy link
Contributor

@gsoltis gsoltis commented Aug 15, 2022

Passing "inputs" directly to git ls-files uses git's globbing, which is not the same as the rest of turbo. Do the globbing ourselves instead, and use git hash-object.

@vercel
Copy link
Contributor

vercel bot commented Aug 15, 2022

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

1 Ignored Deployment
Name Status Preview Updated
turbo-site ⬜️ Ignored (Inspect) Aug 16, 2022 at 3:45PM (UTC)

@gsoltis
Copy link
Contributor Author

gsoltis commented Aug 15, 2022

Fixes #1250

@gsoltis gsoltis marked this pull request as ready for review August 15, 2022 18:32
@gsoltis
Copy link
Contributor Author

gsoltis commented Aug 15, 2022

Fixes #1249

@gsoltis gsoltis added the pr: on hold Pull requests that are "on hold" and should not be merged label Aug 15, 2022
@gsoltis
Copy link
Contributor Author

gsoltis commented Aug 15, 2022

Marking as "on hold" only to prevent automerge

Copy link
Member

@tknickman tknickman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Copy link
Contributor

@mehulkar mehulkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I don't understand every line of Go, but I understand the gist of the work and it seems like good clean up!

}

globalFileHashMap, err := fs.GetHashableDeps(rootpath, globalDepsPaths)
globalFileHashMap, err := hashing.GetHashableDeps(rootpath, globalDepsPaths)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does Go have a way to import as or is it normal to infer hashing here from the imported package file name?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's normal to infer it, but if need be you can prefix an import with a token, like here

@gsoltis gsoltis removed the pr: on hold Pull requests that are "on hold" and should not be merged label Aug 16, 2022
@nathanhammond
Copy link
Contributor

nathanhammond commented Aug 30, 2022

We have two more places we need to clean up that are somewhat-related, I'll pick those off.

kodiakhq bot pushed a commit that referenced this pull request Sep 13, 2022
As reported by @dglsparsons, after #1699 `inputs` cannot be relative from the package directory (while still remaining within the project). This issue was published in `turbo@1.4.4`.

This PR patches the traversal behavior so that `inputs` works correctly and adds a test for the behavior to ensure that it does not regress.
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.

5 participants