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

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

vrurg
Copy link
Contributor

@vrurg vrurg commented Sep 16, 2022

In support of rakudo/rakudo#5060

@vrurg
Copy link
Contributor Author

vrurg commented Sep 16, 2022

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

# 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 {
Copy link
Contributor

@ugexe ugexe Sep 16, 2022

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
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