GithubHelp home page GithubHelp logo

ghedo / p5-dist-zilla-plugin-github Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 18.0 294 KB

Plugins to integrate Dist::Zilla with GitHub

Home Page: http://metacpan.org/release/Dist-Zilla-Plugin-GitHub/

License: Other

Perl 100.00%

p5-dist-zilla-plugin-github's People

Contributors

autarch avatar chorny avatar doherty avatar friedo avatar ghedo avatar ioanrogers avatar jluis avatar jmaslak avatar karenetheridge avatar manwar avatar paultcochrane avatar rjbs avatar rkitover avatar rsrchboy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

p5-dist-zilla-plugin-github's Issues

HTTP authentication method will expire soon

I created a new local distribution and received the following email from github:

You recently used a password to access an endpoint through the GitHub API using HTTP-Tiny/0.056_001. We will deprecate basic authentication using password to this endpoint soon:

https://api.github.com/user/repos

We recommend using a personal access token (PAT) with the appropriate scope to access this endpoint instead. Visit https://github.com/settings/tokens for more information.

Thanks,
The GitHub Team

remote branch not created during minting process

I went to release a newly-minted dist, that used [GitHub::Create] at minting time:

: [ether@tequila git/Test-Deep-UnorderedPairs]$; dzil release
Smartmatch is experimental at (eval 243) line 7.
Smartmatch is experimental at (eval 243) line 14.
Smartmatch is experimental at (eval 245) line 7.
Smartmatch is experimental at (eval 245) line 14.
Smartmatch is experimental at (eval 247) line 7.
Smartmatch is experimental at (eval 247) line 14.
Smartmatch is experimental at (eval 249) line 10.
Smartmatch is experimental at (eval 249) line 20.
[DZ] beginning to build Test-Deep-UnorderedPairs
[DZ] guessing dist's main_module is lib/Test/Deep/UnorderedPairs.pm
[DZ] extracting distribution abstract from lib/Test/Deep/UnorderedPairs.pm
[@Author::ETHER/ReadmeAnyFromPod] Override README.md in root
[DZ] writing Test-Deep-UnorderedPairs in Test-Deep-UnorderedPairs-0.001
[@Author::ETHER/CopyFilesFromBuild] Copied Test-Deep-UnorderedPairs-0.001/LICENSE to ./LICENSE
[DZ] building archive with Archive::Tar::Wrapper
[DZ] writing archive to Test-Deep-UnorderedPairs-0.001.tar.gz
[@Author::ETHER/Git::Check] branch master is in a clean state
[@Author::ETHER/Git::CheckFor::MergeConflicts] No merge conflict markers found; OK to release
[@Author::ETHER/Git::CheckFor::CorrectBranch] Current branch (master) and release branch match ( master )
[@Author::ETHER/Git::Remote::Check] Updating remote 'origin'
fatal: ambiguous argument 'origin/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

.git/config at this time contains:

[core]                                                                                              
        repositoryformatversion = 0                                                                 
        filemode = true                                                                             
        bare = false                                                                                
        logallrefupdates = true                                                                     
        ignorecase = true                                                                           
        precomposeunicode = false                                                                   
[user]                                                                                              
        email = [email protected]                                                                      
[remote "origin"]                                                                                   
        url = [email protected]:karenetheridge/Test-Deep-UnorderedPairs.git                                             
        fetch = +refs/heads/*:refs/remotes/origin/*                                                 
[branch "master"]                                                                                   
        merge = refs/heads/master                                                                   
        remote = origin

performing 'git push -u origin master' let the release complete.

I'm not sure what is missing in the repository spec to make things work
without manual intervention? After I did 'push -u', the only difference to
the config was that rebase = true was added to the branch specification.
Or do I just need to add this command to my minting profile with
[Run::AfterMint]? It feels like this should be done automatically, by
[GitHub::Create].

Github::Meta output wrong info when repository is fork

I got wrong metadata for my repository, https://github.com/pavelsr/net-ip-checker using [Github::Meta] plugin, it showed links from forked repository.

E.g. META.yml looked as

---
abstract: 'IPv4/IPv6 addresses validator'
author:
  - 'Pavel Serikov <[email protected]>'
build_requires:
  Test::More: '0'
configure_requires:
  ExtUtils::MakeMaker: '0'
dynamic_config: 0
generated_by: 'Dist::Zilla version 6.010, CPAN::Meta::Converter version 2.150001'
license: perl
meta-spec:
  url: http://module-build.sourceforge.net/META-spec-v1.4.html
  version: '1.4'
name: Net-IP-Checker
requires:
  Exporter: '0'
  Regexp::IPv4: '0'
  Regexp::IPv6: '0'
  strict: '0'
  warnings: '0'
resources:
  bugtracker: https://github.com/bingos/net-ip-minimal/issues
  homepage: http://metacpan.org/release/Net-IP-Minimal
  repository: git://github.com/bingos/net-ip-minimal.git
version: '0.01'
x_serialization_backend: 'YAML::Tiny version 1.70'

Solved by migrating to alternative plugin, https://metacpan.org/pod/Dist::Zilla::Plugin::GithubMeta, but still please have a look

got an error; don't know what the problem was

During release:

[@Author::ETHER/GitHub::Update] Updating GitHub repository info
[@Author::ETHER/GitHub::Update] Using MetaCPAN URL
[@Author::ETHER/GitHub::Update] Err:  Not Found

The repository in question is https://github.com/Leont/dist-zilla-plugin-test-checkdeps

The exact config being used is:

[GitHub::Update]
metacpan = 1

I'm not sure what the problem was, or how it can be remedied? If there is a permissions issue (because I am a contributor to leont's repo, rather than me being the owner), it would be helpful for that to be in the error message, so I can drop the use of the plugin for this dist.

Feature Request: Use dummy values when offline

I have one more request, but I don't yet have time to implement myself...

The Pod::Weaver::Section::Support plugin throws a fatal error if it does not find the right metadata. Usually, I have D::Z::Plugin::GitHub::Meta provide that metadata. But if I'm offline, then Github::Meta doesn't provide any metadata and DZ blows up. It usually looks something like this:

[DZ] beginning to build Dist-Zilla-Chef
[DZ] dist's main_module is lib/Dist/Zilla/Chef.pm
[DZ] extracting distribution abstract from lib/Dist/Zilla/Chef.pm
[GitHub::Meta] Getting GitHub repository info
[GitHub::Meta] Err: Can't connect to GitHub.com
[DZ] No bugtracker in metadata!

So this basically means I can't build my dist when I'm offline (unless I tweak my dist.ini). Obviously, that is a major hassle. So I propose that Github::Meta should provide some dummy values for the metadata, if it can't get a response from GitHub. You might also throw in a prompt to ask whether to use the dummy values or abort the build.

Create add remote? custom remote name

maybe it already does... but if create doesn't add the remote locally could you add that feature. I kind of suspect it does already, though. So this bug is really about adding a feature to custom name the default remote. I know by default most people use origin but by default I always use my as this makes for better finger habits when working on larger projects (e.g. origin is the canonical repo, but my is my copy)

long deprecation warning

Providing an optimized subroutine ref for type constraints is deprecated. Use the inlining feature (inline_as) instead. at C:/strawberry514/perl/site/lib/Dist/Zilla/Plugin/GithubMeta.pm line 13, line 18. Dist::Zilla::Plugin::GithubMeta::BEGIN() called at C:/strawberry514/perl/site/lib/MooseX/Types/URI.pm line 0 eval {...} called at C:/strawberry514/perl/site/lib/MooseX/Types/URI.pm line 0 require Dist/Zilla/Plugin/GithubMeta.pm called at C:/strawberry514/perl/site/lib/Module/Runtime.pm line 317 Module::Runtime::require_module('Dist::Zilla::Plugin::GithubMeta') called at C:/strawberry514/perl/site/lib/Class/Load.pm line 177

Module still works, but message is inconvenient due to size.
Dist-Zilla-Plugin-GitHub 0.32
Moo 1.000006

automatically base repo on distname

I keep all my repo's based on my distname, so instead of specifying it, it'd be nice if this plugin could just go with that if I don't specify it.

Check for required information prior to release step

I use these plugins as part of a bundle, and I found at least GitHub::Update checks for some information it needs only after the release, and then errors if it does not find it. It would be good to check up front and not let the release occur if it will cause an error. That way we could fix these problems before we have many side effects.

Here's a snippet of what I saw:

[@MAXMIND/UploadToCPAN] POSTing upload for WebService-PayPal-PaymentsAdvanced-0.000023.tar.gz to https://pause.perl.org/pause/authenquery                                             
[@MAXMIND/UploadToCPAN] PAUSE add message sent ok [200]                                    
[@MAXMIND/GitHub::Update] Err: Missing value 'github.user' in git config                   

*** Please tell me who you are.              

Run                                          

  git config --global user.email "[email protected]"                                         
  git config --global user.name "Your Name"  

to set your account's default identity.      
Omit --global to set the identity only in this repository.                                 

fatal: unable to auto-detect email address (got 'root@12f515da5e27.(none)')

Thank you!

Can't locate object method "register_component" via package

This plugin installed fine, but running dzil new with it fails. I placed the following in my profile.ini file:

[Github::Create]
repo = {{ $dist -> name }}
prompt = true               ; ask first
remote = origin

Now when I run dzil new Foo::Bar I get the following error:

Can't locate object method "register_component" via package "Dist::Zilla::Plugin::Github::Create" (perhaps you forgot to load "Dist::Zilla::Plugin::Github::Create"?) at C:/strawberry/perl/site/lib/Dist/Zilla/MVP/Section.pm line 36, <GEN1> line 21.

I am using Dist::Zilla 4.300034, Strawberry Perl, Windows 7 x64. My profile.ini also contains [Git::Init] sometime before [Github::Create].

Extract user/org from repo URL

Currently, you don't extract the user/org name from the repo URL in _get_repo_name - instead, you tack on $login/ and hope it is correct. $login is taken from a global config file, while the repo URL provides the most specific information about where we should be looking. If you use a regex like this

/github\.com.*?[:\/](.*)\.git$/

then you'll extract the user/org name as well -- the returned value will then be correct.

I get 'Err: Can't connect to GitHub'

So on OSX I installed this plugin and I do:

sudo dzil new MyTest::Library
[DZ] making target dir /Users/gideon/Documents/Coding/GithubCode/MyTest-Library
[DZ] writing files to /Users/gideon/Documents/Coding/GithubCode/MyTest-Library
GitHub password for 'gideondsouza'
[GitHub::Create] Creating new GitHub repository 'mytest-library'
[GitHub::Create] Issues are enabled
[GitHub::Create] Wiki is enabled
[GitHub::Create] Downloads are enabled
[GitHub::Create] Err: Can't connect to GitHub
[DZ] dist minted in ./MyTest-Library

I looked at the code, and I don't get anything from the try log, just the catch portion logs. Any clues how I should narrow it down?

organization support

I'd like to have the option

username = foo

or something that sets the root "user" for github. We have recently added a github account for our corporation that has authed my personal account, so my .gitconfig is still right, but the user that all off the metadata should be under is different.

Point to organization's URLs if forked from there

Is it possible to check whether the repo was forked from an organization's repo? If so, it'd be nice to point to that instead of the user's individual fork. For example, the org may have issues enabled, but the user may not.

resources not set if no git remote added yet

for the project I'm runnnig this on I haven't created a github repository yet, or added a remote. However I don't see that this should matter since it won't change any of the end url's.

~/.gitconfig

    [github]
    user = xenoterracide
    token = obfuscated

relevant dist.ini

[GitHub::Meta]

here's the output I'm getting from dzil

[GitHub::Meta] Getting GitHub repository info
Use of uninitialized value $git_url in substitution (s///) at /home/xenoterracide/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/Dist/Zilla/Plugin/GitHub/Meta.pm line 129.
Use of uninitialized value in numeric eq (==) at /home/xenoterracide/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/Dist/Zilla/Plugin/GitHub/Meta.pm line 133.
Use of uninitialized value in numeric eq (==) at /home/xenoterracide/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/Dist/Zilla/Plugin/GitHub/Meta.pm line 137.
[DZ] writing Pod-Weaver-Section-Acknowledgements in Pod-Weaver-Section-Acknowledgements-0.1.0
[@Filter/MetaYAML] Invalid META structure.  Errors found:
[@Filter/MetaYAML] '' for 'web' is not a valid URL. (resources -> repository -> web) [Validation: 2]
[@Filter/MetaYAML] '.git' for 'url' does not have a URL scheme (resources -> repository -> url) [Validation: 2] 
[@Filter/MetaYAML] Invalid META structure.  Errors found:
[@Filter/MetaYAML] '' for 'web' is not a valid URL. (resources -> repository -> web) [Validation: 2]
[@Filter/MetaYAML] '.git' for 'url' does not have a URL scheme (resources -> repository -> url) [Validation: 2] at /home/xenoterracide/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/x86_64-linux-thread-multi/Moose/Meta/Method/Delegation.pm line 110

Silence new experiemental::smartmatch warnings

given is experimental at /home/mike/perl5/perlbrew/perls/perl-blead/lib/site_perl/5.17.11/Dist/Zilla/App/Command/gh.pm line 51.
when is experimental at /home/mike/perl5/perlbrew/perls/perl-blead/lib/site_perl/5.17.11/Dist/Zilla/App/Command/gh.pm line 52.
when is experimental at /home/mike/perl5/perlbrew/perls/perl-blead/lib/site_perl/5.17.11/Dist/Zilla/App/Command/gh.pm line 74.

"Getting GitHub repository info" fails with "Err: Not Found"

This was with version 0.46 as well. The same release as in #55.

In the build step I see this:

[@MAXMIND/GitHub::Meta] Getting GitHub repository info
[@MAXMIND/GitHub::Meta] Err:  Not Found
[@MAXMIND/GitHub::Meta] Using offline repository information

However I was online. I continued with the release as I didn't notice this. Likely it would be better to fail completely rather than continue here.

The META.json/META.yml files ended up with invalid info for the repository, and missing the GitHub issues link.

Thank you!

Guess remote name instead of hardcoded `origin`

Instead of using origin try to fetch it from git first using for example result of

git branch -rl "*/HEAD"

or (expecting master to be default branch)

git rev-parse --abbrev-ref  --symbolic-full-name master@{upstream}

smartmatch/given/when are deprecated and give warnings

: [ether@tequila git/Dist-Zilla-PluginBundle-Author-ETHER].6$; dzil test --release
Smartmatch is experimental at (eval 243) line 7.
Smartmatch is experimental at (eval 243) line 14.
Smartmatch is experimental at (eval 245) line 7.
Smartmatch is experimental at (eval 245) line 14.
Smartmatch is experimental at (eval 247) line 7.
Smartmatch is experimental at (eval 247) line 14.
Smartmatch is experimental at (eval 249) line 10.
Smartmatch is experimental at (eval 249) line 20.
given is experimental at /Users/ether/.perlbrew/libs/17.11@std/lib/perl5/Dist/Zilla/App/Command/gh.pm line 51.
when is experimental at /Users/ether/.perlbrew/libs/17.11@std/lib/perl5/Dist/Zilla/App/Command/gh.pm line 52.
when is experimental at /Users/ether/.perlbrew/libs/17.11@std/lib/perl5/Dist/Zilla/App/Command/gh.pm line 74.

: [ether@tequila git/Dist-Zilla-PluginBundle-Author-ETHER].6$; perl -v

This is perl 5, version 17, subversion 11 (v5.17.11) built for darwin-2level

Infinite loop at "Using two-factor authentication"

I was doing a release, and was prompted for my GitHub password. Afterwards, the plugin started looping and I had to control-c to get out of it. I believe it might have been trying to prompt for a 2 factor auth code, but I'm not sure.

My GitHub account has 2 factor auth set up with the authenticator app as well as security keys. I assume it would have been trying to ask for a TOTP code from the app.

Possibly there was something else wrong given the "Err: Not Found" message, but I don't know.

[@MAXMIND/ConfirmRelease] *** Preparing to release GeoIP2-2.006000.tar.gz with @MAXMIND/UploadToCPAN ***
Do you want to continue the release process? [y/N]: y
[@MAXMIND/PromptIfStale] checking for stale authordeps, plugins, prerequisites...
[@MAXMIND/CheckPrereqsIndexed] checking prereqs against CPAN index
[@MAXMIND/CheckPrereqsIndexed] all prereqs appear to be indexed
[@MAXMIND/MAXMIND::CheckChangesHasContent] Checking Changes
[@MAXMIND/MAXMIND::CheckChangesHasContent] Changes file has content for release
[@MAXMIND/MAXMIND::Git::CheckFor::CorrectBranch] Current branch (master) and release branch match (master)
[@MAXMIND/Git::CheckFor::MergeConflicts] No merge conflict markers found; OK to release
[@MAXMIND/Git::Check] branch master is in a clean state
[@MAXMIND/UploadToCPAN] registering upload with PAUSE web server
[@MAXMIND/UploadToCPAN] POSTing upload for GeoIP2-2.006000.tar.gz to https://pause.perl.org/pause/authenquery
[@MAXMIND/UploadToCPAN] PAUSE add message sent ok [200]
GitHub password for 'horgh' :
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  Not Found
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  Not Found
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  Not Found
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  Not Found
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  Not Found
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  Not Found
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  Not Found
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  Not Found
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  Not Found
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  Not Found
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  Not Found
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  Not Found
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  Not Found
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  Not Found
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  Not Found
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  Not Found
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  Not Found
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  Not Found
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  Not Found
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  Not Found
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  Not Found
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  Not Found
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  Not Found
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  Not Found
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  Not Found
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  Not Found
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  Not Found
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  Not Found
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  Not Found
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  API rate limit exceeded for 108.172.153.241. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  API rate limit exceeded for 108.172.153.241. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  API rate limit exceeded for 108.172.153.241. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
[@MAXMIND/GitHub::Update] Err:  API rate limit exceeded for 108.172.153.241. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
[@MAXMIND/GitHub::Update] Using two-factor authentication
Use of uninitialized value $_ in substitution (s///) at /usr/share/perl/5.26/HTTP/Tiny.pm line 1338.
Use of uninitialized value $_ in string eq at /usr/share/perl/5.26/HTTP/Tiny.pm line 1339.
[@MAXMIND/GitHub::Update] Retrying with two-factor authentication
[@MAXMIND/GitHub::Update] Updating GitHub repository info
[@MAXMIND/GitHub::Update] Using MetaCPAN URL
^C

Ugly and unhelpful stack trace when github.user config is missing

e.g. when building the 'thaljef/Pinto' dist:

[DZ] building test distribution under .build/tz_EGx9JYa
[DZ] beginning to build Pinto
[DZ] dist's main_module is lib/Pinto.pm
[DZ] extracting distribution abstract from lib/Pinto.pm
[GitHub::Meta] Err: Provide valid GitHub login values
[GitHub::Meta] Getting GitHub repository info
Use of uninitialized value $login in concatenation (.) or string at /home/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/Dist/Zilla/Plugin/GitHub/Meta.pm line 127.
[GitHub::Meta] Err: Can't connect to GitHub.com
[GitHub::Meta] Using offline repository information
Use of uninitialized value $login in concatenation (.) or string at /home/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/Dist/Zilla/Plugin/GitHub/Meta.pm line 147.
-StopWords (for plugin Pod::Weaver::Plugin::StopWords) does not appear to be installed


Trace begun at /home/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/Config/MVP/Section.pm line 161
... huge stack trace omitted...

This would be much nicer, and easier to diagnose, with an error message like "missing git config 'github.user'".

IO::Socket::SSL v1.56 required

A version number for IO::Socket::SSL is required in Makefile prereqs.

Using an earlier version just gives the dzil error:

[GitHub::Meta] Err: Can't connect to GitHub

Only when dumping the response did I see this:

$VAR1 = {
      'success' => '',
      'headers' => {
                     'content-type' => 'text/plain',
                     'content-length' => 57
                   },
      'status' => 599,
      'content' => 'IO::Socket::SSL 1.56 must be installed for https support',
      'reason' => 'Internal Exception',
      'url' => 'https://api.github.com/repos/<user>/<repo>'
    };

thanks,
Michael

Use OAuth

Now that logging in with a token is deprecated, you should use OAuth instead of requiring a password be stored in git's configuration.

feature request: support enabling/disabling wiki, issues etc

There are options in the repository settings to enable/disable a project wiki for the repository, allow issue tracking, etc. it would be handy for ::Create and/or ::Update to support changing these settings -- for example when I create a project repo on github, I might want to disable issue tracking, so as to force issues to go to RT instead.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.