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

Conversation

@gsoltis
Copy link
Contributor

@gsoltis gsoltis commented Jul 12, 2023

Description

  • add manual file hashing as a fallback for any error from git-based hashing

Testing Instructions

Added a new test that verifies we can still hash when git errors

@vercel
Copy link
Contributor

vercel bot commented Jul 12, 2023

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

Name Status Preview Comments Updated (UTC)
examples-designsystem-docs 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jul 13, 2023 6:03pm
examples-vite-web 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jul 13, 2023 6:03pm
9 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview Jul 13, 2023 6:03pm
examples-cra-web ⬜️ Ignored (Inspect) Visit Preview Jul 13, 2023 6:03pm
examples-gatsby-web ⬜️ Ignored (Inspect) Jul 13, 2023 6:03pm
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview Jul 13, 2023 6:03pm
examples-native-web ⬜️ Ignored (Inspect) Visit Preview Jul 13, 2023 6:03pm
examples-nonmonorepo ⬜️ Ignored (Inspect) Visit Preview Jul 13, 2023 6:03pm
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Jul 13, 2023 6:03pm
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview Jul 13, 2023 6:03pm
turbo-site ⬜️ Ignored (Inspect) Visit Preview Jul 13, 2023 6:03pm

@github-actions
Copy link
Contributor

github-actions bot commented Jul 12, 2023

🟢 CI successful 🟢

Thanks

@chris-olszewski chris-olszewski added the pr: fixship A PR which is approved with notes and does not require re-review. label Jul 13, 2023
@gsoltis gsoltis removed the pr: fixship A PR which is approved with notes and does not require re-review. label Jul 13, 2023
@gsoltis gsoltis enabled auto-merge (squash) July 13, 2023 18:03
"failed to use git to hash files: {}. Falling back to manual",
e
);
crate::manual::get_package_file_hashes_from_processing_gitignore(
Copy link
Contributor

Choose a reason for hiding this comment

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

I carefully moved a lot of this fallback into "application" code inside of Go because doing the fallback lower-level caused the "we have three different ways that we hash files which are only mostly-compatible" situation.

I'd much prefer to hoist this back into application code out of scm.

@gsoltis gsoltis merged commit 7c18c80 into main Jul 13, 2023
@gsoltis gsoltis deleted the gsoltis/file_hashing_fallback branch July 13, 2023 19:58
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.

4 participants