I was trying to do a build that's split across multiple agents. My default RequiredModules.psd1 file has all the things in it which I want on my dev laptop for this project:
And so when I call it with RequiredModules.Build.psd1 it's removing the .psd1 and then Import-LocatlizedData actually sees the .Build as a file extension, and removes it, and then loads RequiredModules.psd1 instead of RequiredModules.Build.psd1
I don't know why we might need to GetFileNameWithoutExtension there, but I think it's better if we don't, to support the idea of installing a subset like this. What do you think?
I suppose I can just rename them to RequiredModules-Build.psd1 but it seems weird that I need to, and this feels like a bug.
I was trying to do a build that's split across multiple agents. My default RequiredModules.psd1 file has all the things in it which I want on my dev laptop for this project:
But on the build and test agents, I'd like to install a subset:
However
Install-RequiredModule
inImportRequiredModulesFile
does this:And so when I call it with
RequiredModules.Build.psd1
it's removing the .psd1 and thenImport-LocatlizedData
actually sees the.Build
as a file extension, and removes it, and then loadsRequiredModules.psd1
instead ofRequiredModules.Build.psd1
I don't know why we might need to
GetFileNameWithoutExtension
there, but I think it's better if we don't, to support the idea of installing a subset like this. What do you think?I suppose I can just rename them to
RequiredModules-Build.psd1
but it seems weird that I need to, and this feels like a bug.