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

Fix to deprecated S3DownloadStrategy #5137

Merged

Conversation

amancevice
Copy link
Contributor

Remove references to removed require_aws_sdk method
See commit: 599ecc9b5ad7951b8ddc51490ebe93a976d43b29

I couldn't find any documentation on what exactly users are supposed to do with the warning:

Calling S3DownloadStrategy is deprecated! Use maintaining S3DownloadStrategy in your own formula or tap instead.

Is there documentation on this?

  • 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 tests with your changes locally?

Remove references to removed require_aws_sdk method
See commit: 599ecc9
@@ -204,12 +211,6 @@ def scp_source
class DownloadStrategyDetector
class << self
module Compat
def detect(url, using = nil)
strategy = super
require_aws_sdk if strategy == S3DownloadStrategy
Copy link
Member

Choose a reason for hiding this comment

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

Was the require_aws_sdk method removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, it looks like it got taken out during deprecation. I linked the commit in the PR description but here again for reference
599ecc9

Copy link
Member

Choose a reason for hiding this comment

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

@amancevice My bad, could you re-add that method into this Compat module instead?

Copy link
Member

Choose a reason for hiding this comment

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

@amancevice Actually if this is working for you it's fine as-is.

@MikeMcQuaid
Copy link
Member

Use maintaining S3DownloadStrategy in your own formula or tap instead.

Whoops, this wording isn't ideal, updating in #5138.

I couldn't find any documentation on what exactly users are supposed to do with the warning:
Is there documentation on this?

Hopefully the new messaging in #5138 is a bit clearer. In short, you're meant to move this code into your formula (or tap if you use require_relative) as Homebrew is not going to maintain it any more.

I apologise that this is a relatively recent 180; ideally we'd have done this before accepting these download strategies but I think it's better for everyone if Homebrew isn't maintaining download strategies we don't actually use.

@MikeMcQuaid MikeMcQuaid merged commit 556b339 into Homebrew:master Oct 20, 2018
@MikeMcQuaid
Copy link
Member

Thanks again @amancevice!

@lock lock bot added the outdated PR was locked due to age label Nov 19, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Nov 19, 2018
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.

None yet

3 participants