Giter VIP home page Giter VIP logo

gitpan's People

Contributors

anirvan avatar jlavallee avatar kappa avatar oalders avatar schwern avatar yanick avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gitpan's Issues

Needs logging

Right now, gitpan spews a lot of information at the screen. It needs improved logging to identify:

  • Problems vs information
  • Which dists had problems
  • What that problem was
  • Enough info to solve it or repeat it

follow history through release renames

Sometimes a module is renamed, and its distribution is renamed accordingly. It would be useful to be able to mark that a pair of distributions with different base names are in fact versions of the same project, and so a module's history is followed through all the names it had. Separately, but probably more difficult, is following when distributions have been split up or combined, in that sometimes a particular module is bundled with others and other times it is released on its own. Both of these cases have happened with my projects.

C/CL/CLOTHO/CAM-PDF-1.02_01.tgz

importing CAM-PDF-1.02_01
downloading file:///var/local/backpan/authors/id/C/CL/CLOTHO/CAM-PDF-1.02_01.tgz
extracting distribution
Use of uninitialized value $_ in stat at /usr/local/lib/perl5/site_perl/File/chmod.pm line 37.
Use of uninitialized value in bitwise and (&) at /usr/local/lib/perl5/site_perl/File/chmod.pm line 37.
Use of uninitialized value $_ in chmod at /usr/local/lib/perl5/site_perl/File/chmod.pm line 66.
invalid top directory at /usr/local/lib/perl5/5.10.1/File/Find.pm line 598.

Put tags into their own namespace

Yanick pointed out that if you add gitpan as a remote to your dev repository and fetch it, gitpan's tags will silently overwrite your own. So tag 1.2.3 suddenly points at gitpan's release. This is Bad.

  • Investigate if annotated tags solves this
  • Prefix all tags with cpan/ by default.
  • Provide an option to change the prefix.

Document .diff github URL hack

If you tack a .diff or .patch on the end of a github commit URL it will produce a diff. Krishna was pointing out this would be handy for submitting a patch to an author (one who isn't on github). Document this in the FAQ and perhaps make the gitpan command line tool spit out the URLs.

Choking on perl-c++-api

Immediately following extraction, CPANPLUS has either $mod->package_name or $mod->package_version undef.

[MSG] Extracted 'perl-c++-api.0.0_2/test/loop-time.cc'
[MSG] Extracted 'perl-c++-api.0.0_2/test/example.pm'
[MSG] Extracted 'perl-c++-api.0.0_2/MANIFEST'
[MSG] Extracted 'perl-c++-api.0.0_2/Artistic'
Use of uninitialized value in concatenation (.) or string at /usr/local/lib/perl5/5.10.1/CPANPLUS/Internals/Extract.pm line 202.
at /usr/local/lib/perl5/5.10.1/CPANPLUS/Internals/Extract.pm line 202
CPANPLUS::Internals::Extract::_extract('CPANPLUS::Backend=HASH(0x11e63b4)', 'extractdir', '/var/folders/eJ/eJzTVP7oG7GVsKYHJtMprE+++TI/-Tmp-/4LMlmc3YWL', 'module', 'CPANPLUS::Module::Fake=HASH(0x100f8b38)') called at /usr/local/lib/perl5/5.10.1/CPANPLUS/Module.pm line 621
CPANPLUS::Module::extract('CPANPLUS::Module::Fake=HASH(0x100f8b38)', 'extractdir', '/var/folders/eJ/eJzTVP7oG7GVsKYHJtMprE+++TI/-Tmp-/4LMlmc3YWL') called at /usr/local/lib/perl5/site_perl/Git/CPAN/Import.pm line 83
Git::CPAN::Import::main('file:///var/local/backpan/authors/id/K/KE/KENFOX/perl-c++-api...', 'HASH(0x1bfa238)') called at /Users/schwern/devel/git-cpan-patch/scripts/git-backpan-init line 68
eval {...} called at /Users/schwern/devel/git-cpan-patch/scripts/git-backpan-init line 67
Use of uninitialized value in concatenation (.) or string at /usr/local/lib/perl5/5.10.1/CPANPLUS/Internals/Extract.pm line 202.
at /usr/local/lib/perl5/5.10.1/CPANPLUS/Internals/Extract.pm line 202
CPANPLUS::Internals::Extract::_extract('CPANPLUS::Backend=HASH(0x11e63b4)', 'extractdir', '/var/folders/eJ/eJzTVP7oG7GVsKYHJtMprE+++TI/-Tmp-/4LMlmc3YWL', 'module', 'CPANPLUS::Module::Fake=HASH(0x100f8b38)') called at /usr/local/lib/perl5/5.10.1/CPANPLUS/Module.pm line 621
CPANPLUS::Module::extract('CPANPLUS::Module::Fake=HASH(0x100f8b38)', 'extractdir', '/var/folders/eJ/eJzTVP7oG7GVsKYHJtMprE+++TI/-Tmp-/4LMlmc3YWL') called at /usr/local/lib/perl5/site_perl/Git/CPAN/Import.pm line 83
Git::CPAN::Import::main('file:///var/local/backpan/authors/id/K/KE/KENFOX/perl-c++-api...', 'HASH(0x1bfa238)') called at /Users/schwern/devel/git-cpan-patch/scripts/git-backpan-init line 68
eval {...} called at /Users/schwern/devel/git-cpan-patch/scripts/git-backpan-init line 67
[MSG] Extracted 'perl-c++-api.0.0_2.tar.gz' to '/private/var/folders/eJ/eJzTVP7oG7GVsKYHJtMprE+++TI/-Tmp-/4LMlmc3YWL/perl-c++-api.0.0_2'

Figure out why its choking on ipad

importing ipad.tar.gz (file:///var/local/backpan/authors/id/T/TI/TIMB/ipad.tar.gz)
downloading ipad.tar.gz
[MSG] Trying to get 'file:///var/local/backpan/authors/id/T/TI/TIMB/ipad.tar.gz'
extracting distribution
[MSG] Extracted 'cmi2.ps'
[MSG] Extracted 'cost.txt'
[MSG] Extracted 'example1.tk'
[MSG] Extracted 'margin.csv'
[MSG] Extracted 'pad12.ppt'
[MSG] Extracted 'pngsetup.exe'
[MSG] Extracted 'pres0.png'
[MSG] Extracted 'x.pl'
Use of uninitialized value in concatenation (.) or string at /usr/local/lib/perl5/5.10.1/CPANPLUS/Internals/Extract.pm line 202.
at /usr/local/lib/perl5/5.10.1/CPANPLUS/Internals/Extract.pm line 202
CPANPLUS::Internals::Extract::_extract('CPANPLUS::Backend=HASH(0x11e62ac)', 'extractdir', '/var/folders/eJ/eJzTVP7oG7GVsKYHJtMprE+++TI/-Tmp-/TQNm6LwraS', 'module', 'CPANPLUS::Module::Fake=HASH(0x100d5870)') called at /usr/local/lib/perl5/5.10.1/CPANPLUS/Module.pm line 621
CPANPLUS::Module::extract('CPANPLUS::Module::Fake=HASH(0x100d5870)', 'extractdir', '/var/folders/eJ/eJzTVP7oG7GVsKYHJtMprE+++TI/-Tmp-/TQNm6LwraS') called at /usr/local/lib/perl5/site_perl/Git/CPAN/Import.pm line 83
Git::CPAN::Import::main('file:///var/local/backpan/authors/id/T/TI/TIMB/ipad.tar.gz', 'HASH(0x100606d0)') called at /Users/schwern/devel/git-cpan-patch/scripts/git-backpan-init line 68
eval {...} called at /Users/schwern/devel/git-cpan-patch/scripts/git-backpan-init line 67
Use of uninitialized value in concatenation (.) or string at /usr/local/lib/perl5/5.10.1/CPANPLUS/Internals/Extract.pm line 202.
at /usr/local/lib/perl5/5.10.1/CPANPLUS/Internals/Extract.pm line 202
CPANPLUS::Internals::Extract::_extract('CPANPLUS::Backend=HASH(0x11e62ac)', 'extractdir', '/var/folders/eJ/eJzTVP7oG7GVsKYHJtMprE+++TI/-Tmp-/TQNm6LwraS', 'module', 'CPANPLUS::Module::Fake=HASH(0x100d5870)') called at /usr/local/lib/perl5/5.10.1/CPANPLUS/Module.pm line 621
CPANPLUS::Module::extract('CPANPLUS::Module::Fake=HASH(0x100d5870)', 'extractdir', '/var/folders/eJ/eJzTVP7oG7GVsKYHJtMprE+++TI/-Tmp-/TQNm6LwraS') called at /usr/local/lib/perl5/site_perl/Git/CPAN/Import.pm line 83
Git::CPAN::Import::main('file:///var/local/backpan/authors/id/T/TI/TIMB/ipad.tar.gz', 'HASH(0x100606d0)') called at /Users/schwern/devel/git-cpan-patch/scripts/git-backpan-init line 68
eval {...} called at /Users/schwern/devel/git-cpan-patch/scripts/git-backpan-init line 67
[MSG] Extracted 'ipad.tar.gz' to '/private/var/folders/eJ/eJzTVP7oG7GVsKYHJtMprE+++TI/-Tmp-/TQNm6LwraS'
[ERROR] Unable to find 'Build.PL' or 'Makefile.PL' for 'ipad.tar.gz'; Will default to 'CPANPLUS::Dist::MM' but might be unable to install!

add 'cmi2.ps'
add 'cost.txt'
add 'example1.tk'
add 'ipad.tar.gz'
add 'margin.csv'
add 'pad12.ppt'
add 'pngsetup.exe'
add 'pres0.png'
add 'temp_git_index.lock'
add 'x.pl'
opening backpan index
couldn't import Parse::BACKPAN::Packages::Release=HASH(0xbd8c748) at /Users/schwern/devel/git-cpan-patch/scripts/git-backpan-init line 77.
at /Users/schwern/devel/git-cpan-patch/scripts/git-backpan-init line 77
fatal: git checkout: updating paths is incompatible with switching branches.
Did you intend to checkout 'cpan/master' which can not be resolved as commit?
at /usr/local/lib/perl5/site_perl/Error.pm line 184
Error::throw('Git::Error::Command', 'checkout -t -b master cpan/master', 128) called at /usr/local/lib/perl5/site_perl/Git.pm line 467
Git::command_noisy('Git=HASH(0x1bdcc78)', 'checkout', '-t', '-b', 'master', 'cpan/master') called at /Users/schwern/devel/git-cpan-patch/scripts/git-backpan-init line 80

Beg github for more space

This is going to need somewhere between 5 and 10 gigs (based on the 14 gig size of BackPAN and the compression of ongoing imports). Importing a random selection of dists would give a more accurate estimate.

I've emailed support explaining the project and our space needs, as well as the number of dists we plan to import.

S/ST/STBEY/Date-Calc-4.0b7.tar.gz

Will not unpack entirely on a non-case sensitive filesystem (ie. my Mac) because it contains multiple overlaping directories and files.

Solutions: Run the import on another machine. Make a temporary case-sensitive filesystem to import into.

Commit as a gitpan identity

Commits (not authors) are currently being done as schwern. It would be less confusing, and egotistical, if they went in as gitpan.

Normalize version tags

So 1.2.3 is tagged as v1.2.3. This makes versions stand out, follows the git semi-standard, and prevents versions like .01 from choking git.

v1.2.3 is left as v1.2.3.

Problem with Bundle-Slash-2.11

importing Bundle-Slash-2.11
downloading file:///var/local/backpan/authors/id/C/CN/CNANDOR/Bundle-Slash-2.11.tar.gz
extracting distribution
Use of uninitialized value $dir in concatenation (.) or string at lib/Git/CPAN/Patch/Import.pm line 47.

Plack-Middleware-Cache is missing

I tried going straight to the URL and i get the jedi-octocat 404 page.

I was surprised to see that the search/filter box is working, but it turned up very few results for plack
(I don't think I saw any Middleware).

I thought everything was here. Is there a manual process to start including a given module?
Or is the sheer size of gitpan breaking github?

Old version of HTML-FormHandler

Hi,

Don't know if this is the proper place for this, but HTML-FormHandler have version 0.29002 in gitpan and 0.32003 on cpan and backpan. Is there a way to update this?

  • Bjørn-Olav

Only commit PAUSE approved modules?

CPAN has an ownership policy and not everything on BackPAN is actually part of a distribution. Knowing what's indexed comes from the PAUSE uploads database. gitpan should make use of this and only select stable tarballs which were in the index.
http://devel.cpantesters.org/

Trouble is, PAUSE goes by module. gitpan by distribution. You have releases which contain some authorized and some unauthorized modules. For example, this appears in the PAUSE uploads database. Its clearly the result of an incomplete ownership transfer, and valid.
http://search.cpan.org/~chorny/Apache-Session-1.88/

But this does not. However, for the purposes of gitPAN there's no problem making a repo for this. gitPAN has no global module index to worry about.
http://search.cpan.org/dist/lcwa/

There isn't a whole lot one can do about that. The data in the uploads database just lists tarballs. If we had the same info that search.cpan does we could maybe apply some heuristics and say that if the module matching the dist name is authorized (ie. Apache-Session-1.88.tar.gz is authorized for Apache::Session) then its ok.

D/DM/DMOW/Eludia-07.08.30.tar.gz is a bad archive

importing Eludia-07.08.30
downloading file:///var/local/backpan/authors/id/D/DM/DMOW/Eludia-07.08.30.tar.gz
extracting distribution
Error listing contents of archive '/var/folders/eJ/eJzTVP7oG7GVsKYHJtMprE+++TI/-Tmp-/Zr2KPqhhtT/Eludia-07.08.30.tar.gz': tar: Unrecognized archive format: Inappropriate file type or format
tar: Error exit delayed from previous errors.
at lib/Git/CPAN/Patch/Import.pm line 107
Invalid header block at offset unknown at /usr/local/lib/perl5/5.10.1/Archive/Extract.pm line 809
Invalid header block at offset unknown at /usr/local/lib/perl5/5.10.1/Archive/Extract.pm line 809
Invalid header block at offset unknown at /usr/local/lib/perl5/5.10.1/Archive/Extract.pm line 809
Invalid header block at offset unknown at /usr/local/lib/perl5/5.10.1/Archive/Extract.pm line 809
Invalid header block at offset unknown at /usr/local/lib/perl5/5.10.1/Archive/Extract.pm line 809
Invalid header block at offset unknown at /usr/local/lib/perl5/5.10.1/Archive/Extract.pm line 809
Invalid header block at offset unknown at /usr/local/lib/perl5/5.10.1/Archive/Extract.pm line 809
Invalid header block at offset unknown at /usr/local/lib/perl5/5.10.1/Archive/Extract.pm line 809
Invalid header block at offset unknown at /usr/local/lib/perl5/5.10.1/Archive/Extract.pm line 809
Invalid header block at offset unknown at /usr/local/lib/perl5/5.10.1/Archive/Extract.pm line 809
Invalid header block at offset unknown at /usr/local/lib/perl5/5.10.1/Archive/Extract.pm line 809
Invalid header block at offset unknown at /usr/local/lib/perl5/5.10.1/Archive/Extract.pm line 809
Invalid header block at offset unknown at /usr/local/lib/perl5/5.10.1/Archive/Extract.pm line 809
Invalid header block at offset unknown at /usr/local/lib/perl5/5.10.1/Archive/Extract.pm line 809
Use of uninitialized value in -d at /usr/local/lib/perl5/5.10.1/Archive/Extract.pm line 860.
Unable to extract '/var/folders/eJ/eJzTVP7oG7GVsKYHJtMprE+++TI/-Tmp-/Zr2KPqhhtT/Eludia-07.08.30.tar.gz': Invalid header block at offset unknown at lib/Git/CPAN/Patch/Import.pm line 107
Extract failed due to errors at lib/Git/CPAN/Patch/Import.pm line 107
Couldn't extract /var/folders/eJ/eJzTVP7oG7GVsKYHJtMprE+++TI/-Tmp-/Zr2KPqhhtT/Eludia-07.08.30.tar.gz to /var/folders/eJ/eJzTVP7oG7GVsKYHJtMprE+++TI/-Tmp-/Zr2KPqhhtT because Error listing contents of archive '/var/folders/eJ/eJzTVP7oG7GVsKYHJtMprE+++TI/-Tmp-/Zr2KPqhhtT/Eludia-07.08.30.tar.gz': tar: Unrecognized archive format: Inappropriate file type or format
tar: Error exit delayed from previous errors.

Unable to extract '/var/folders/eJ/eJzTVP7oG7GVsKYHJtMprE+++TI/-Tmp-/Zr2KPqhhtT/Eludia-07.08.30.tar.gz': Invalid header block at offset unknown
Extract failed due to errors at lib/Git/CPAN/Patch/Import.pm line 107.

Beg github for more space

This is going to need somewhere between 5 and 10 gigs (based on the 14 gig size of BackPAN and the compression of ongoing imports). Importing a random selection of dists would give a more accurate estimate.

I've emailed support explaining the project and our space needs, as well as the number of dists we plan to import.

Tag what tarball a commit came from

It might be handy to be able to ask "what commit goes with this tarball I have here?" without having to try and parse the version. That information is available in the commit log as git-cpan-file but it could also be a tag.

Work in parallel

Currently the biggest bottleneck is creating a github repo and pushing. This would lend itself very well to parallel processing, either with threads or whatever.

Tag the latest release by a given author

If a SCHLAMEEL releases version 1, 2 and 5 and SCHLAMAZEL releases 3 and 4 you tag 4 with SCHLAMAZEL and 5 with SCHLAMEEL. This will let you find the last version released by X which might be useful. Can't hurt.

I can think of one use case, the current author who never got the past author's repo can use it to find the old history.

Maintain one repository with all of CPAN

It would be neat to be able to git clone all of CPAN. This could be done by having a huge repo with lots of submodules or in one insanely big repo. The latter would make for a neat alternative to rsyncing all of CPAN for testing / greping.

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.