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

Stop using shallow clones #11328

Merged
merged 1 commit into from May 5, 2021
Merged

Conversation

cnnrmnn
Copy link
Contributor

@cnnrmnn cnnrmnn commented May 5, 2021

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew style with your changes locally?
  • Have you successfully run brew typecheck with your changes locally?
  • Have you successfully run brew tests with your changes locally?

Closes #8607.

Do taps use download strategies? If so, I'll need to make some changes since shallow clones are allowed for third-party taps.

@MikeMcQuaid
Copy link
Member

Do taps use download strategies?

Nope!

If so, I'll need to make some changes since shallow clones are allowed for third-party taps.

Yes, that'd be great, thanks!

@cnnrmnn
Copy link
Contributor Author

cnnrmnn commented May 5, 2021

Yes, that'd be great, thanks!

I asked because my current changes would've broken tap shallow cloning if taps used download strategies. Should I make additional modifications to stop allowing shallow clones for third-party taps?

@Rylan12
Copy link
Member

Rylan12 commented May 5, 2021

Do taps use download strategies?

Nope!

Maybe I misunderstand the question or answer but taps do use these download strategies.

If so, I'll need to make some changes since shallow clones are allowed for third-party taps.

I asked because my current changes would've broken tap shallow cloning if taps used download strategies. Should I make additional modifications to stop allowing shallow clones for third-party taps?

I think if we're shallow clones internally, they shouldn't be supported at all by the download strategy, even for this party taps.

If a tap really needs to have shallow clones, they can always write their own strategy to use them.

@cnnrmnn
Copy link
Contributor Author

cnnrmnn commented May 5, 2021

Maybe I misunderstand the question or answer but taps do use these download strategies.

Fairly certain you understand my question.

@MikeMcQuaid
Copy link
Member

I think if we're shallow clones internally, they shouldn't be supported at all by the download strategy, even for this party taps.
If a tap really needs to have shallow clones, they can always write their own strategy to use them.

Agreed!

@MikeMcQuaid MikeMcQuaid merged commit d49aa05 into Homebrew:master May 5, 2021
@MikeMcQuaid
Copy link
Member

Thanks so much for your first contribution! Without people like you submitting PRs we couldn't run this project. You rock, @cnnrmnn!

@cnnrmnn
Copy link
Contributor Author

cnnrmnn commented May 5, 2021

My pleasure! Do I need to open a new issue to remove the tap commands that allow shallow clones or can I take that straight to a PR?

@cnnrmnn cnnrmnn deleted the stop-shallow-cloning branch May 5, 2021 16:02
@carlocab
Copy link
Member

carlocab commented May 5, 2021

Feel free to open a PR, I think.

How does this affect formulae that do a Git checkout in the url, and specify shallow: false as an argument, if at all? Just double-checking to know how urgently changes need to be made to formulae in Homebrew/core.

@MikeMcQuaid
Copy link
Member

can I take that straight to a PR?

Go straight to a PR!

How does this affect formulae that do a Git checkout in the url, and specify shallow: false as an argument, if at all? Just double-checking to know how urgently changes need to be made to formulae in Homebrew/core.

shallow: false just became a no-op. No urgency.

@cnnrmnn cnnrmnn mentioned this pull request May 6, 2021
7 tasks
carlocab added a commit to carlocab/homebrew-core that referenced this pull request May 25, 2021
carlocab added a commit to carlocab/homebrew-core that referenced this pull request May 25, 2021
carlocab added a commit to carlocab/homebrew-core that referenced this pull request May 25, 2021
carlocab added a commit to carlocab/homebrew-core that referenced this pull request May 25, 2021
carlocab added a commit to carlocab/homebrew-core that referenced this pull request May 25, 2021
carlocab added a commit to carlocab/homebrew-core that referenced this pull request May 25, 2021
carlocab added a commit to carlocab/homebrew-core that referenced this pull request May 25, 2021
carlocab added a commit to carlocab/homebrew-core that referenced this pull request May 25, 2021
carlocab added a commit to carlocab/homebrew-core that referenced this pull request May 25, 2021
carlocab added a commit to carlocab/homebrew-core that referenced this pull request May 25, 2021
carlocab added a commit to carlocab/homebrew-core that referenced this pull request May 25, 2021
carlocab added a commit to carlocab/homebrew-core that referenced this pull request May 25, 2021
carlocab added a commit to carlocab/homebrew-core that referenced this pull request May 25, 2021
carlocab added a commit to carlocab/homebrew-core that referenced this pull request May 25, 2021
carlocab added a commit to carlocab/homebrew-core that referenced this pull request May 25, 2021
carlocab added a commit to carlocab/homebrew-core that referenced this pull request May 25, 2021
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request May 25, 2021
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request May 25, 2021
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request May 25, 2021
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request May 25, 2021
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request May 25, 2021
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request May 25, 2021
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request May 25, 2021
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request May 25, 2021
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request May 25, 2021
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request May 25, 2021
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request May 25, 2021
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request May 25, 2021
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request May 25, 2021
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request May 25, 2021
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request May 25, 2021
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request May 25, 2021
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request May 25, 2021
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request May 25, 2021
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request May 25, 2021
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request May 25, 2021
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request May 25, 2021
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request May 25, 2021
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request May 25, 2021
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request May 25, 2021
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request May 25, 2021
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request May 25, 2021
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request May 25, 2021
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request May 25, 2021
This is a no-op since Homebrew/brew#11328.

Closes #77981.

Signed-off-by: Sean Molenaar <1484494+SMillerDev@users.noreply.github.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
@github-actions github-actions bot added the outdated PR was locked due to age label Jun 25, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Git download strategy: shallow clone for submodules
4 participants