Skip to content

$BuildRoot never gets set #25

Description

@quonic

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions