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

checkbuild doesn't complain about duplicate META6.json keys #62

Open
coke opened this issue Sep 23, 2022 · 2 comments
Open

checkbuild doesn't complain about duplicate META6.json keys #62

coke opened this issue Sep 23, 2022 · 2 comments

Comments

@coke
Copy link

coke commented Sep 23, 2022

https://github.com/coke/raku-zef-deps/blob/221ce84cd8c4c89b61c305a93c93308e1ee6c1e2/META6.json

has two copies of test-depends, caused no trouble.

@coke
Copy link
Author

coke commented Sep 23, 2022

... to be fair, it seems to cause no trouble anywhere, but it would be nice to catch these before uploading, in my opinion.

@tony-o
Copy link
Owner

tony-o commented Nov 1, 2022

Hmm, I'm going to add this as a feature request. That json is valid even though it contains duplicate keys, it requires a custom parser to detect as the internal json parser is unbothered by it, following is the dump from the rakudo json parser:

Hash %result = {:auth("zef:coke"),
                :authors($["Will Coleda"]),
                :depends($["Zef:ver<0.14.2+>", 
                           "Zef::Client:ver<0.14.2+>", 
                           "Zef::Config:ver<0.14.2+>", 
                           "JSON::Fast"]),
                :description("Tool to show dependencies on raku modules given by zef"),           
                :license("Artistic-2.0"), 
                :name("App::Zef-Deps"), 
                :perl("6"), 
                :provides(${"App::Zef-Deps" => "lib/App/Zef-Deps.rakumod"}), 
                :resources($[]), 
                :source-url("git://github.com/coke/raku-zef-deps.git"), 
                :tags($[]), 
                :test-depends($[]), 
                :version("0.9.5")}

@tony-o tony-o added the enhancement New feature or request label Nov 1, 2022
@tony-o tony-o added next iteration and removed enhancement New feature or request labels Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants