Skip to content

$BuildRoot never gets set #25

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

Open
quonic opened this issue Jul 17, 2022 · 0 comments
Open

$BuildRoot never gets set #25

quonic opened this issue Jul 17, 2022 · 0 comments

Comments

@quonic
Copy link

quonic commented Jul 17, 2022

It seems that $ENV:BuildRoot never is assigned before Meta.tests.ps1 is executed. As a result $BuildRoot is never assigned in .\<ModuleName>.build.ps1 .

  • OS: Windows 10
  • PowerShell Version: 5.1
  • List the steps to reproduce the problem below (if possible attach a screenshot and/or link to the code):

Create a new module. Close PowerShell session. Run .\Build.ps1 -test

[-] Text files formatting.Files encoding.Doesn't use Unicode encoding 65ms (46ms|19ms)
 at <ScriptBlock>, .\Tests\meta\Meta.tests.ps1:20
 at <ScriptBlock>, .\Tests\meta\Meta.tests.ps1:19
 ParameterBindingValidationException: Cannot bind argument to parameter 'fileInfo' because it is null.
[-] Text files formatting.Indentations.Uses spaces for indentation, not tabs 4ms (3ms|1ms)
 at <ScriptBlock>, .\Tests\meta\Meta.tests.ps1:35
 at <ScriptBlock>, .\Tests\meta\Meta.tests.ps1:32
 ParameterBindingValidationException: Cannot bind argument to parameter 'Path' because it is null.

Note: Replace root module path with .\ for this issue.

After running the tests, $ENV:BuildRoot does get assigned, but appveyor fails at this same place.

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

No branches or pull requests

1 participant