Coder Social home page Coder Social logo

Check source-url about ecosystem HOT 7 OPEN

raku avatar raku commented on August 20, 2024
Check source-url

from ecosystem.

Comments (7)

JJ avatar JJ commented on August 20, 2024

From this comment by @zoffixznet it follows that it's checked and logged somewhere. However, I don't see anything is being done about it, not that I'm aware of. Any idea?

from ecosystem.

jonathanstowe avatar jonathanstowe commented on August 20, 2024

It's not that:

===> Searching for: Syndication
===> Updated cpan mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/cpan1.json
===> Updated p6c mirror: http://ecosystem-api.p6c.org/projects1.json
===> Testing: Syndication:ver<1.0.0>:auth<github:retupmoca>
===> Testing [OK] for Syndication:ver<1.0.0>:auth<github:retupmoca>
===> Installing: Syndication:ver<1.0.0>:auth<github:retupmoca>

I think that Zef deals with those URIs in a different way that it does with http ones, but it definitely works. Is it possible that the smoke tester itself can't fetch using that scheme?

from ecosystem.

jonathanstowe avatar jonathanstowe commented on August 20, 2024

The ones that it definitely can't deal with are the ones that github gives you like:

   [email protected]:jonathanstowe/p6-jdf.git

Which don't parse as a valid URI.

from ecosystem.

JJ avatar JJ commented on August 20, 2024

Well, from the code, which must be somewhere over here, I would say there's something wrong. For starters, that URL is not correct, but the checker says it is. I have met several modules like that that fail in Blin, so there must be something wrong with them, like the one I point to. In that case it's a timeout, but it's always a Timeout. So, I don't know. As a matter of fact, it's not the kind of URL you can copy and paste into your bar. So maybe zef special cases them, but that need not be stable and is not documented.

from ecosystem.

JJ avatar JJ commented on August 20, 2024

And obviously, git clone git://github.com/retupmoca/p6-syndication.git works. Might not be a special case, but it works as a clone-url, not as a source-url. A https prefix works as both...

from ecosystem.

jonathanstowe avatar jonathanstowe commented on August 20, 2024

Well, if you feed the http://ecosystem-api.p6c.org/projects1.json to :

#!/usr/bin/env perl6
  
use v6;

use META6;
use JSON::Class;

my constant Projects = Array[META6] but JSON::Class;

sub MAIN(IO() $meta-path ) {

    my $json = $meta-path.slurp;

    my $projects = Projects.from-json($json);

    $projects.grep(*.source-url.defined).map(*.source-url).grep(/^git:/)>>.say

}

You'll notice that, er, there are quite a few of them. About half.

The https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/cpan1.json has the source-url re-written to the URI of the distribution tarball.

from ecosystem.

JJ avatar JJ commented on August 20, 2024

That's a problem, then. From modules.perl6.org that's the URL to go to when you click on the GitHub link.

from ecosystem.

Related Issues (20)

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.