GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||
GeezerVison is showing github.com — Enable discovering modules that have names same as a culture (e.g. Az) by SteveL-MSFT · Pull Request #8777 · PowerShell/PowerShell Conversation
|
|
The static analysis failure is not related to this PR. I'll submit a fix for it in a separate PR. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The PR description is updated as we are not using recursion when searching for modules. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Could someone help me understand the delivery vehicle and timing for this fix? Is this a fix for Windows PowerShell 5.1 or for PowerShell Core (6.0)? If Windows PowerShell 5.1, would that mean delivery would be part of a 5.2 type release? Are consumers today completely blocked from building module dependencies on the new Az module until this is resolved? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Ron Howe (@ronhowe) The fix is only for PowerShell Core. You'll get it in PowerShell Core 6.2 RC in hours and in release PowerShell Core 6.2 in weeks. Windows PowerShell 5.2 is not expected. Although MSFT may port this fix to 5.1.
The problem is only for auto discovering. You could use full path to explicitly load the module. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Ron Howe (@ronhowe): to reiterate what Ilya (@iSazonov) said, our bar for servicing Windows PowerShell is very high now, and we do not plan to do a 5.2 release. This has resulted in a small handful of security and accessibility fixes, and some bug fixes to fix regressions associated with those two. That being said, I want to talk to the Azure PowerShell team about this (/cc Scott Phibbs (@sphibbs) and Mark Cowlishaw (@markcowl) for context), as I don't want us limiting the adoption of In the meantime, using Apparently, it may also be the case that But like I said, I'll follow up with the Azure PS to get their sense of the impact. Pure curiosity and off-topic, but I'd also love to hear what's keeping you from using PowerShell Core. :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Dove a little deeper on this...Ron Howe (@ronhowe): what exactly is the problem you're experiencing? We've confirmed that Additionally, because So again, how are you actually being affected here? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
I just read this and that's the exact problem. I can try to be more selective about what my module imports. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
As to why we aren't using PowerShell Core? I'm all for that. It's a bit more difficult to spearhead that adoption across my company. I am at the frontline of that effort, but it's a much slower ship and we have more immediate needs. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The impact is that the user is given the With everyone writing their own module install\update logic, we have to walk the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
You'd think that the Azure team would be verifying that the module works as expected in a majority of use cases before finalizing a module structure that is actually broken on both the supposedly supported platforms. I guess for whatever reason... these cases were overlooked. I don't know that I could fault the PS team for this behaviour moreso than the Azure team for not checking that the module functions as expected with the structure they chose. :/ |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Both teams are failing ME - the user. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
PowerShell#8777) Here are the major changes: - Add logic to skip checking for possible resource directories for the first set of sub directories from the top level. - There was an additional skip if the folder is hidden, rather than doing an explicit attribute check, change the `EnumerationOption` to skip hidden folders. - Since the `IsPossibleModuleDirectory()` helper now only checks to see if the name matches a culture, renamed to `IsPossibleResourceDirectory()` - When getting the default modules, we don't search recursively into individual module folders, so removed additional check for possible resource directory.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Get-Module -ListAvailable skips module found in PSModulePath
There was an error while loading. Please reload this page.