Skip to content

Conversation

@adityapatwardhan
Copy link
Member

@adityapatwardhan adityapatwardhan commented Jun 16, 2020

Fixes #12821

PR Summary

Assemblies listed in FileList of the psd1 should not be loaded when the module is loaded. This change fixes the regression introduced in 6.2.0-preview.2

PR Context

Regression was introduced as a side effect of #8073

PR Checklist

Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we need skipLoading if we have isImportingModule?

Copy link
Member Author

Choose a reason for hiding this comment

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

Even though we are importing the module, we should not be loading the files in FileList here. FileList is meant to be just a list of all the files in the module. It should not have effect on the loading.

Copy link
Collaborator

Choose a reason for hiding this comment

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

The new parameter description and name could be more informative.
getFileListOnly?

@TravisEz13 TravisEz13 added the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Jun 22, 2020
@ghost ghost removed the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Jun 29, 2020
Copy link
Collaborator

@iSazonov iSazonov left a comment

Choose a reason for hiding this comment

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

LGTM with one minor comment.

@TravisEz13 TravisEz13 added the CL-Engine Indicates that a PR should be marked as an engine change in the Change Log label Jun 30, 2020
@TravisEz13 TravisEz13 merged commit 808bf22 into PowerShell:master Jun 30, 2020
@ghost
Copy link

ghost commented Jul 6, 2020

🎉v7.1.0-preview.5 has been released which incorporates this pull request.:tada:

Handy links:

@adityapatwardhan
Copy link
Member Author

@adityapatwardhan make sure this repros in 7.0.x

@TravisEz13
Copy link
Member

@SteveL-MSFT Do we want to back port this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-Engine Indicates that a PR should be marked as an engine change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Files listed in FileList in module manifest are loaded on module load

3 participants