Unable to find type [Stubble.Core.Builders.StubbleBuilder]
See original GitHub issueIn this ticket, the customer has an action to run a script for his custom PowerShell workflow. The script includes a step to execute the command “Install-Module Poshstache -Force
” to install the module Poshstache
.
This action could work fine in the past, but now it failed and from the catch error message, it shows:
::error file=/github/home/.local/share/powershell/Modules/Poshstache/0.1.6/ConvertTo-PoshstacheTemplate.ps1,line=67,col=24::Unable to find type [Stubble.Core.Builders.StubbleBuilder].
I noticed a recent reported issue here, it looks likes the problem occurs on PowerShell 7.
I also tested and tried on PowerShell 7 and PowerShell 5.1, the module Poshstache
can be installed successfully on PowerShell 5.1 but failed on PowerShell 7, same as chwarr mentioned in that issue. And it seems also can work on some other versions lower than PowerShell 7.
I also noticed that the version of PowerShell on the GitHub-hosted Ubuntu runner has been updated from PowerShell 6.2 to PowerShell 7 recently. Maybe this is the reason why the customer’s action could work last month but can’t work now.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:6 (3 by maintainers)
@Mike-E-angelo you might want to check with https://github.com/actions/virtual-environments, from my knowledge, you can not pin to a particular hosted image.
close this, since it’s not related to the runner.