Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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