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

Enforcing header names? #26

Open
afragen opened this issue Nov 2, 2013 · 5 comments
Open

Enforcing header names? #26

afragen opened this issue Nov 2, 2013 · 5 comments

Comments

@afragen
Copy link
Contributor

afragen commented Nov 2, 2013

Do we want to enforce the use of predefined headers, GitHub Plugin URI, BitBucket Plugin URI vs generic Git URI?

I think there can be unintended consequences for just parsing the Plugin URI, like those plugins hosted on both WP.org and GitHub? In a quick check I see that one of my .org plugins shows to update and the update wants to pull from GitHub.

I think we should parse based upon a predefined header.

@pdclark
Copy link
Owner

pdclark commented Nov 2, 2013

I'm fine with at least reducing it to an option that has to be turned on with a filter:

if ( apply_filters( 'ghu_parse_plugin_uris', false ) ) { /*...Look at those headers...*/ }

Or once there's an admin, those repos could be shown, but off by default.

Certainly agree that it should be turned off by default.

@afragen
Copy link
Contributor Author

afragen commented Nov 2, 2013

The problem with it being defaulted off is that any .org plugin with the header
Plugin URI: https://github.com/… is going to try and be updated from GitHub and not from .org

@pdclark
Copy link
Owner

pdclark commented Nov 2, 2013

I may have not written clearly. I'm saying Git updates from Plugin URI off by default. The consequence being that any plugin with a Git address in Plugin URI would not be updated by Git. It would be updated by .org.

@pdclark
Copy link
Owner

pdclark commented Nov 2, 2013

PluginURI has been disabled for Git updates in 20fb1ac

@pdclark
Copy link
Owner

pdclark commented Nov 2, 2013

Is this now a duplicate of #20, or is there another component I'm missing?

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

No branches or pull requests

2 participants