Skip to content

zef silently ignores malformed dependency specifications #481

Open
@patrickbkr

Description

Context

https://360.zef.pm/ currently has:

{
    "api": "",
    "auth": "zef:guifa",
    "authors": [
      "Matthew Stephen STUCKWISCH <[email protected]>"
    ],
    "build-depends": [],
    "depends": [
      "Timezones::ZoneInfo:auth:<zef:guifa>:ver<0.4.1+>"
    ],
    "description": "A module enabling experimental timezone support to DateTime",
    "dist": "DateTime::Timezones:ver<0.4.1>:auth<zef:guifa>",
    "license": "Artistic-2.0",
    "meta-version": "0",
    "name": "DateTime::Timezones",
    "path": "D/AT/DATETIME_TIMEZONES/4ee01e4a6e9e19f8530518e82e58a0962595f365.tar.gz",
    "perl": "6.*",
    "provides": {
      "DateTime::Timezones": "lib/DateTime/Timezones.rakumod"
    },
    "raku": "6.*",
    "resources": [],
    "source-url": "git://github.com/alabamenhu/DateTimeTimezones.git",
    "support": {
      "source": "git://github.com/alabamenhu/DateTimeTimezones.git"
    },
    "tags": [
      "timezones",
      "olson",
      "datetime",
      "time",
      "date"
    ],
    "test-depends": [
      "Test"
    ],
    "version": "0.4.1"
  }

Notice the depends which has an extra : after auth.

When running zef --debug info -v 'DateTime::Timezones:ver<0.4.1>:auth<zef:guifa>' that dependency is not listed:

- Info for: DateTime::Timezones:ver<0.4.1>:auth<zef:guifa>
- Identity: DateTime::Timezones:ver<0.4.1>:auth<zef:guifa>
- Recommended By: Zef::Repository::LocalCache
- Installed: No
Description:     A module enabling experimental timezone support to DateTime
License:         Artistic-2.0
Source-url:      git://github.com/alabamenhu/DateTimeTimezones.git
Provides: 1 modules
--------------------------------------------------
Module             |Path-Name                     
--------------------------------------------------
DateTime::Timezones|lib/DateTime/Timezones.rakumod
--------------------------------------------------
Support:
#   source:     git://github.com/alabamenhu/DateTimeTimezones.git
Depends: 1 items
----------------------
ID|Identity|Installed?
----------------------
1 |Test    |✓         
----------------------

I would have expected some kind of error hinting at the malformed dependency spec.

Related to: tony-o/raku-fez#70

Your Environment

  • raku -v
    Welcome to Rakudo™ v2022.03.
    Implementing the Raku® Programming Language v6.d.
    Built on MoarVM version 2022.03.
  • zef list --installed
    ===> Found via /home/patrickb/.rakubrew/versions/moar-2022.03/share/perl6/site
    App::Prove6:ver<0.0.12>:authcpan:LEONT
    Auth::SASL:ver<0.1.1>
    Base64::Native:ver<0.0.8>:authzef:dwarring
    Base64:ver<0.0.2>:authgithub:ugexe
    CBOR::Simple:ver<0.1.1>:authzef:japhb
    Concurrent::Progress:ver<1.1>:auth<Jonathan Worthington [email protected]>
    Cro::Core:ver<0.8.7>
    Cro::HTTP::Test:ver<0.8.1>
    Cro::HTTP:ver<0.8.5>
    Cro::HTTP:ver<0.8.7>
    Cro::OpenAPI::RoutesFromDefinition:ver<1.0.2>
    Cro::OpenAPI::RoutesFromDefinition:ver<1.0.4>
    Cro::TLS:ver<0.8.7>
    Cro::WebApp:ver<0.8.5>
    Crypt::Random:ver<0.4.1>:authgithub:skinkade
    DBDish::ODBC:ver<0.0.8>:authgithub:salortiz
    DBIish:ver<0.6.4>:authzef:raku-community-modules:api<1>
    DateTime::Format:ver<0.1.4>:authzef:raku-community-modules:api<1.0>
    DateTime::Parse:ver<0.9.1>
    Digest::HMAC:ver<1.0.2>:authgithub:retupmoca
    Digest:ver<0.18.4>:auth
    Distribution::Builder::MakeFromJSON:ver<0.6>:authgithub:niner
    ECMA262Regex:ver<1.1.2>
    Email::MIME:ver<2.0.5>:authgithub:retupmoca
    Email::Simple:ver<2.1.1>:authzef:raku-community-modules
    File::Directory::Tree:auth
    File::Find:ver<0.1.1>
    File::Temp:ver<0.0.8>
    File::Which:ver<1.0.2>
    Getopt::Long:ver<0.3.3>
    HTML::Escape:ver<0.0.1>
    HTTP::HPACK:ver<0.9.3>
    HTTP::Tiny:ver<0.1.8>:authzef:jjatria
    IO::Path::ChildSecure:ver<1.001011>
    IO::Socket::Async::SSL:ver<0.7.10>:auth
    Inline::Perl5:ver<0.59>:authgithub:niner
    JSON::Fast:ver<0.15>
    JSON::Fast:ver<0.17>:authcpan:TIMOTIMO
    JSON::JWT:ver<1.1.1>:authzef:raku-community-modules
    JSON::Pointer:ver<1.0>
    LWP::Simple:ver<0.108>:authzef:raku-community-modules
    LibraryCheck:ver<0.0.10>:authgithub:jonathanstowe:api<1.0>
    LibraryMake:ver<1.0.0>:authgithub:retupmoca
    Log::Timeline:ver<0.4>
    MIME::Base64:ver<1.2.3>:authzef:raku-community-modules
    MIME::QuotedPrint:ver<1.0.0>:authgithub:retupmoca
    NativeHelpers::Blob:ver<0.1.12>:authgithub:salortiz
    NativeLibs:ver<0.0.9>:authgithub:salortiz
    Net::SMTP::Client::Async:ver<0.0.1>
    OO::Monitors:ver<1.1.1>
    OpenAPI::Model:ver<1.0.4>
    OpenAPI::Schema::Validate:ver<1.0.7>
    OpenSSL:ver<0.1.30>:authgithub:sergot
    PathTools:ver<0.1.1>:authgithub:ugexe
    Readline:ver<0.1.6>:authcpan:fooist
    SSH::LibSSH:ver<0.9.1>:auth<Jonathan Worthington [email protected]>
    Shell::Command
    System::Query:ver<0.1.6>:authzef:tony-o
    TAP:ver<0.3.5>
    Test::Assertion:ver<0.0.5>:authzef:lizmat
    Test::Mock:ver<1.5>
    TinyFloats:ver<0.0.4>:authzef:japhb
    URI::Encode:ver<0.09>:authzef:raku-community-modules
    URI:ver<0.3.5>
    YAMLish:ver<0.0.6>
    if:ver<0.1.1>:authgithub:FROGGS
    zef:ver<0.13.7>:authgithub:ugexe:api<0>
    ===> Found via /home/patrickb/.rakubrew/versions/moar-2022.03/share/perl6/core
    CORE:ver<6.d>:auth

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions