Closed raandree closed 2 months ago
Attention: Patch coverage is 50.00000%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 81%. Comparing base (
e669ffa
) to head (32c31f7
). Report is 1 commits behind head on main.
Files with missing lines | Patch % | Lines |
---|---|---|
.build/tasks/SetPsModulePath.build.ps1 | 50% | 1 Missing :warning: |
@johlju, @gaelcolas, do you have any idea why this isn't working. When building on a Windows Server 2022 build agent, it runs fine.
It uses PSResurceGet now in the pipeline. Maybe something changed on the build workers so it started to fail now. I will dig into it this weekend. For now you can switch off PSResurceGet by setting it to false in Resolve-Dependecies.psd1. Hopefully the build passes then.
Thanks, @johlju. But, when following your advice and disabling PSResourceGet
in a PR, we would disable it for the main branch as well. I guess this is not what you want, right?
If this is a problem with PSResourceGet then I think we need to turn it off temporarily until I can investigate why it's happening. But please first try to enable the use of the compatibility module in the Resolve-Dependency.psd1 if it is not already enabled.
I think build workers was updated to PS 7.4.1 recently. PSResourceGet was included in that apparently. So maybe there is an issue with the PowerShellGet compatibility module not being included in PS 7.4.1 or download as part of the pipeline (there is a setting for that too), or a bug in the PowerShellGet compatibility module. We might need to refactor all tasks that use PowerShellGet commands to instead use PSResourceGet commands when available. Then we don't rely on the compatibility module.
But please first try to enable the use of the compatibility module in the Resolve-Dependency.psd1 if it is not already enabled.
It was already enabled, so there is an issue sonewhere. So suggest temporarily turning off PSResourceGet until we can investigate. So we get this PR through. 😊
It seems to be an issue with the image ubuntu-latest
. Not sure what, switching to windows-latest
made it start working. Will switch to windows-latest
to fix the issue for now.
@raandree build works now, but integration tests are failing due to this change
I have merged the latest changed but the build is failing again with errors that are not related to my change. Is the build working at all at the moment?
I have fixed the test pipeline. It seems there were changes on the build worker that affected the tests. If you rebase again that error should not happen now.
@raandree I resolved the conflicts so it would pull in latest changes. Now the build fails due to the suggested changes. Looks like Plaster does not like the variable in the template. 🤔
@johlju, I have tried to get it working but Plaster cannot handle subexpressions. I have removed them and added a comment. Does that work?
It works if we document how to use it here: https://github.com/gaelcolas/Sampler/blob/main/README.md#set_psmodulepath
Sure @johlju, the documentation has been updated.
Pull Request
Pull Request (PR) description
So far the
PSModulePath
configured in thebuild.yml
was a static value. Do make it more flexible, thePSModulePath
is not expanded.Changed
Task list
build.ps1 -ResolveDependency
).This change is