Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the defensive behavior correct. #1651

Merged
merged 1 commit into from
Aug 8, 2022

Conversation

nathanhammond
Copy link
Contributor

Defensive behavior caught a build issue, but not where I expected it.

@vercel
Copy link

vercel bot commented Aug 8, 2022

@nathanhammond is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Aug 8, 2022

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

Name Status Preview Updated
turbo-site ✅ Ready (Inspect) Visit Preview Aug 8, 2022 at 7:29PM (UTC)

@@ -102,7 +102,7 @@ publish: clean prepublish build
git tag "v$(TURBO_VERSION)"

# Include the patch in the log.
git format-patch HEAD~1 --stdout
git format-patch HEAD~1 --stdout | cat
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This opens more by default, which let me catch the issue.

cd $(CLI_DIR)
@test "" = "`git diff cmd/turbo/version.go`" || (echo "Refusing to publish with unupdated version.go" && false)
@test "" != "`git diff -- cmd/turbo/version.go`" || (echo "Refusing to publish with unupdated version.go" && false)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Flipped a clause, and this guarantees the file listing is unambiguous.

@kodiakhq kodiakhq bot merged commit fbaf021 into vercel:main Aug 8, 2022
@nathanhammond nathanhammond deleted the defend-harder branch August 8, 2022 19:44
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.

None yet

2 participants