Skip to content

BUILD FAILURE: xDnsServer: Cannot build the module #211

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

Closed
Sudman1 opened this issue Mar 19, 2021 · 5 comments · Fixed by #212
Closed

BUILD FAILURE: xDnsServer: Cannot build the module #211

Sudman1 opened this issue Mar 19, 2021 · 5 comments · Fixed by #212
Labels
bug The issue is a bug. external The issue cannot be resolved within this repository.

Comments

@Sudman1
Copy link
Contributor

Sudman1 commented Mar 19, 2021

Details of the scenario you tried and the problem that is occurring

build.ps1 fails at Generating Conceptual Help. It has an incorrect path to the xDnsServer.psd1 file.

This may be a problem upstream with latest Sampler version.

Verbose logs showing the problem

===============================================================================
			GENERATE CONCEPTUAL HELP
This task generates conceptual help for DSC resources.
-------------------------------------------------------------------------------
  /pack/build/Generate_Conceptual_Help
  /home/vsts/work/1/s/output/RequiredModules/DscResource.DocGenerator/0.8.1/tasks/Generate_Conceptual_Help.build.ps1:64

ERROR: Cannot find path '/home/vsts/work/1/s/output/xDnsServer/xDnsServer.psd1' because it does not exist.
At /home/vsts/work/1/s/output/RequiredModules/Sampler/0.109.6/Sampler.psm1:472 char:19
+ … oduleInfo = Import-PowerShellDataFile -Path $BuiltModuleManifestPath  …
+               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
At /home/vsts/work/1/s/output/RequiredModules/DscResource.DocGenerator/0.8.1/tasks/Generate_Conceptual_Help.build.ps1:64 char:1
+ task Generate_Conceptual_Help {
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
At /home/vsts/work/1/s/build.ps1:290 char:13
+             task $workflow $workflowItem
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
At /home/vsts/work/1/s/build.ps1:290 char:13
+             task $workflow $workflowItem
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Build FAILED. 9 tasks, 1 errors, 0 warnings 00:00:04.2003029
Import-PowerShellDataFile: /home/vsts/work/1/s/output/RequiredModules/Sampler/0.109.6/Sampler.psm1:472
Line |
 472 |  … oduleInfo = Import-PowerShellDataFile -Path $BuiltModuleManifestPath  …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot find path
     | '/home/vsts/work/1/s/output/xDnsServer/xDnsServer.psd1'
     | because it does not exist.

Suggested solution to the issue

Unknown. Autodetect path?

The DSC configuration that is used to reproduce the issue (as detailed as possible)

N/A

The operating system the target node is running

Windows 10 and Linux (Azure Dev Ops Agent)

Version and build of PowerShell the target node is running

Name Value


PSVersion 5.1.19041.610
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.610
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

and presumably version 7 on Linux?

Version of the DSC module that was used

HEAD

@Sudman1 Sudman1 changed the title BREAKING CHANGE: xDnsServer: Cannot build the module since incorporation of Sampler.GitHubTasks BUILD FAILURE: xDnsServer: Cannot build the module Mar 19, 2021
@Sudman1
Copy link
Contributor Author

Sudman1 commented Mar 19, 2021

Confirmed:

Sampler 0.109.6 breaks the build process.

Workaround:

Hard-coded version 0.109.5 in the RequiredModules.psd1 file and removed 0.109.6 from the output/RequiredModules folder.

@johlju
Copy link
Member

johlju commented Mar 19, 2021

Thanks for reporting! @gaelcolas is working on stuff, I think there was a dependency issue that Sampler needed to be released before PR dsccommunity/DscResource.DocGenerator#65 in DocGenerator was merged (since it uses Sampler too).

@johlju johlju added bug The issue is a bug. external The issue cannot be resolved within this repository. labels Mar 19, 2021
@johlju
Copy link
Member

johlju commented Mar 19, 2021

We should change this back to latest once Sampler and DocGenerator are working together again. When PR dsccommunity/DscResource.DocGenerator#65 is merged.

https://github.com/dsccommunity/xDnsServer/blob/6b8daba558bcaccc1dc273b2a22385b35661710e/RequiredModules.psd1#L16

@gaelcolas
Copy link
Member

This should be fixed, let me know if not.

@gaelcolas
Copy link
Member

And the problem was that all tasks needed to be updated with sampler, so Sampler.GitHubTasks needed to be pinned also, and DscResource.DocGenerator was not yet updated...

All should be working now if set to latest.
Sorry for the issue, I thought I could update all at once, but yesterday was a bit crazy at work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug. external The issue cannot be resolved within this repository.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants