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

Error during "Test the Build and Download Dependencies" step #18

Open
Yasin0ps opened this issue Jul 22, 2024 · 1 comment
Open

Error during "Test the Build and Download Dependencies" step #18

Yasin0ps opened this issue Jul 22, 2024 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@Yasin0ps
Copy link

Yasin0ps commented Jul 22, 2024

Right after cloning the repo and trying to test the dependencies, I'm getting one error after executing: ".\build.ps1 -UseModuleFast"

Did not find 'RootConfiguration.ps1' and 'CompileRootConfiguration.ps1' in 'source', using the ones in 'Sampler.DscPipeline'
RootConfiguration will import these composite resource modules as defined in 'build.yaml':
        - PSDesiredStateConfiguration
        - DscConfig.M365
        - DscConfig.Demo
Preloading available resources
Error(s) occured during the compilation. Details will be shown below
Transcript stopped, output file is C:\Git\output\Logs\CompileRootConfiguration.log
ERROR: At line:4 char:50
+  Import-DscResource -ModuleName  -ModuleVersion  -Name
+                                                  ~~~~~
The argument for the Name parameter is not valid. Specify a valid string argument.
At line:4 char:34
+  Import-DscResource -ModuleName  -ModuleVersion  -Name
+                                  ~~~~~~~~~~~~~~
Argument must be constant.
At line:4 char:21
+  Import-DscResource -ModuleName  -ModuleVersion  -Name
+                     ~~~~~~~~~~~
Argument must be constant.
At C:\Git\output\RequiredModules\Sampler.DscPipeline\9.9.9\tasks\CompileRootConfiguration.build.ps1:44 char:1
+ task CompileRootConfiguration {
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Build FAILED. 14 tasks, 1 errors, 0 warnings 00:00:50.1527048
Write-Error: C:\Git\build.ps1:536:9
Line |
 536 |          Invoke-Build @PSBoundParameters -Task $Tasks -File $MyInvocat …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The argument for the Name parameter is not valid. Specify a valid string argument.

Is this expected?

@raandree raandree self-assigned this Oct 22, 2024
@raandree raandree added the question Further information is requested label Oct 22, 2024
@raandree
Copy link
Owner

No, and I cannot reproduce it. The build locally and in Azure DevOps works as expevted (Jobs in run #0.2.0-preview.1].

Do you still have that issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants