Skip to content

Add tests for picking ver/api/auth default from META6#822

Open
vrurg wants to merge 4 commits into
Raku:masterfrom
vrurg:problem-solving-340
Open

Add tests for picking ver/api/auth default from META6#822
vrurg wants to merge 4 commits into
Raku:masterfrom
vrurg:problem-solving-340

Conversation

@vrurg

@vrurg vrurg commented Sep 16, 2022

Copy link
Copy Markdown
Contributor

In support of rakudo/rakudo#5060

@vrurg

vrurg commented Sep 16, 2022

Copy link
Copy Markdown
Contributor Author

Additional testing is needed for system collapsing and { "any": [ ... ] } entries.

Comment thread packages/S11-modules/multi-version/lib/MultiVer.rakumod Outdated
Comment thread packages/S11-modules/multi-version/lib/MultiVer.rakumod
# Remove the previous installation to guarantee no garbage is left behind.
self.rmsubdir($dest-dir);

for $?DISTRIBUTION.meta<resources>.grep({ .starts-with($dist ~ '/') && .ends-with('.in') }) -> IO() $tmpl {

@ugexe ugexe Sep 16, 2022

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The exposed public interface is actually $*DISTRIBUTION.I have no idea why I used $?DISTRIBUTION elsewhere... I think originally it was $?DISTRIBUTION but then later I changed it to $*DISTRIBUTION (which still requires setting up a $?DISTRIBUTION)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documentation mentions $?DISTRIBUTION, the compiler installs it too. And it's the right name for it. With $*DISTRIBUTION there is a chance to pick up a wrong one from the call stack. Yet, the lexical nature of $?DISTRIBUTION makes it more error-proof.

Contrary, $*DISTRIBUTION is good for the compilation.

Make sure we don't left behind opened in/out/err.
Make sure templates expanded correctly and distribution reported by
module has the version we expect.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants