So I’ve been working on this automated build through Jenkins, running a build seems to cause this to happen to every single Windows package Jenkins tries to build using the Habitat plugin (which just runs a
hab studio build habitat-win on the folder.
Get-Location : The 'Get-Location' command was found in the module 'Microsoft.PowerShell.Management', but the module could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Management'. At C:\hab\pkgs\core\hab-studio\0.73.0\20190115010701\bin\hab-studio.ps1:460 char:22 + $script:SRC_PATH = Get-Location + ~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Get-Location:String) , ParentContainsErrorRecordException + FullyQualifiedErrorId : CouldNotAutoloadMatchingModule
Any ideas as to why it wouldn’t be able to find this module? I reverted back to 0.65.0 at one point and this error stopped happening after deleting the later versions of hab-studio from the pkgs directory. Unfortunately that seems to trigger another error where hab keeps looking for C:/Windows/TEMP/hab. Any ideas as to why this may be happening?