Skip to content

Disable branch name validation #7037

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

Merged
merged 1 commit into from
Oct 25, 2023
Merged

Conversation

neonichu
Copy link
Contributor

This validation happens unconditionally after parsing a manifest, so even if a dependency may be unused or overidden which is undesirable and unexpected. We need to either provide context or move the validation, but this currently breaks builds in environments where the validation doesn't succeed, so to unblock, we can disable it.

rdar://117330410

This validation happens unconditionally after parsing a manifest, so even if a dependency may be unused or overidden which is undesirable and unexpected. We need to either provide context or move the validation, but this currently breaks builds in environments where the validation doesn't succeed, so to unblock, we can disable it.

rdar://117330410
@neonichu neonichu self-assigned this Oct 25, 2023
@neonichu
Copy link
Contributor Author

@swift-ci please test

@neonichu neonichu merged commit 15840e4 into main Oct 25, 2023
@neonichu neonichu deleted the disable-invalidSourceControlBranchName branch October 25, 2023 21:06
neonichu added a commit that referenced this pull request Nov 1, 2023
As a follow-up to #7037, we decided to disable this bogus validation entirely since it doesn't add value compared to git's own output (it actually decreases the value since e.g. it omits the repository in question), it was emitted multiple times (probably still a bug for other validations that needs to be fixed) and it was unconditional, so e.g. it could cause SwiftPM to fail in cases where the branch/revision wouldn't be used anyway.

I also opted to remove the existing test here since it doesn't seem to be very useful for us to test git itself. We will now always just use git and the user will get the same behavior as when they're using an invalid branch with git itself.

rdar://117442643
neonichu added a commit that referenced this pull request Nov 1, 2023
As a follow-up to #7037, we decided to disable this bogus validation
entirely since it doesn't add value compared to git's own output (it
actually decreases the value since e.g. it omits the repository in
question), it was emitted multiple times (probably still a bug for other
validations that needs to be fixed) and it was unconditional, so e.g. it
could cause SwiftPM to fail in cases where the branch/revision wouldn't
be used anyway.

I also opted to remove the existing test here since it doesn't seem to
be very useful for us to test git itself. We will now always just use
git and the user will get the same behavior as when they're using an
invalid branch with git itself.

rdar://117442643
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