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

Disk provider binary-only module reference fix #815

Conversation

rsteber
Copy link
Contributor

@rsteber rsteber commented Apr 8, 2024

If a module that is read by the disk metadata provider references a binary-only module, the "ListModulesInDependencyOrder()" method causes an exception error that is catched by the Get-D365Module function in line 172. As a result, the order of the modules cannot be determined taking the dependencies into account and "ListModules" is used instead. The problem can be easily avoided by adding the model manifest of the runtime metadata provider to the "CreateDiskProvider" method in line 165.

This ensures that the disk provider has all the information it needs to determine the sequence for all modules based on the dependencies.

If a module that is read by the disk metadata provider references a binary-only module, the "ListModulesInDependencyOrder()" method causes an exception error that is intercepted by the Get-D365Module function in line 172.
As a result, the order of the modules cannot be determined taking the dependencies into account and "ListModules" is used instead.
The problem can be easily avoided by adding the model manifest of the runtime metadata provider to the "CreateDiskProvider" method in line 165.

This ensures that the disk provider has all the information it needs to determine the sequence for all modules based on the dependencies.
@FH-Inway FH-Inway merged commit 7be7523 into d365collaborative:development Apr 8, 2024
11 checks passed
@FH-Inway
Copy link
Member

FH-Inway commented Apr 8, 2024

Nice find! Thanks for the pr as well.

@TrudAX : You might be interested in this 😄

@Splaxi : Can you do a release? We have several unreleased changes: master...development

@TrudAX
Copy link

TrudAX commented Apr 8, 2024

@FH-Inway - thanks. I can test it when you release it. Currently, I can't use this parameter ListModulesInDependencyOrder for a new VM, created a workaround just manually specifying a compile section

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.

3 participants