Marc-André Moreau

34.4K posts

Marc-André Moreau banner
Marc-André Moreau

Marc-André Moreau

@awakecoding

Remote desktop protocol expert, OSS contributor and Microsoft MVP. I love designing products with Rust, C# and PowerShell. Proud to be CTO at Devolutions. 🇨🇦

Lavaltrie, Quebec, Canada 参加日 Haziran 2010
1.9K フォロー中5.8K フォロワー
Marc-André Moreau
Marc-André Moreau@awakecoding·
@PrzemyslawKlys @ryanyates1990 @SasStu @merill It just crossed my mind that I could implement automatic PowerShell module cleanup in multi-pwsh as well, since I've already had to hook PowerShellGet and PSResourceGet for the virtual environment overrides. I can extend Install-Module and Install-PSResource cmdlets
English
0
0
0
9
Przemysław Kłys
Przemysław Kłys@PrzemyslawKlys·
My main problem with this and other stuff is that a lot of us do the same thing and then there are 10 modules doing the same thing, 50 scripts doing similR thing. I know @merill has his stuff around entra updates, and few other people theirs. But as i use UniGetUI I would probably use it.
English
1
0
0
8
Marc-André Moreau
Marc-André Moreau@awakecoding·
Why does Update-Module in #PowerShell install the newer version of the module without uninstalling the old one? If you frequently update the same module, you quickly end up with several leftover module versions, and no quick and easy way to clean things up
English
2
0
5
887
Marc-André Moreau
Marc-André Moreau@awakecoding·
@PrzemyslawKlys @ryanyates1990 @SasStu I'd rather spend the energy and time I have fixing the problem from UniGetUI, and hopefully one day the PowerShell team will want to address this long-standing issue at the source. In the meantime - not worth most people's time and energy, unfortunately
English
1
0
1
17
Marc-André Moreau
Marc-André Moreau@awakecoding·
@ryanyates1990 @SasStu @PrzemyslawKlys The truth is this usually goes unnoticed, and the first time someone notices that old modules just stay there, the reaction is usually that this is silly. Update-Module doesn't update a module, it's just Install-Module for the newer version, leaving the old one in place
English
1
0
0
29
Marc-André Moreau
Marc-André Moreau@awakecoding·
@ryanyates1990 @SasStu @PrzemyslawKlys True, it would likely have a better chance of getting accepted in PSResourceGet now, but what are the chances this is going to be accepted given the potential edge cases to handle? The problem is most likely to remain unsolved, leaving it up to users to clean up the litter
English
1
0
0
25
Marc-André Moreau
Marc-André Moreau@awakecoding·
@ryanyates1990 @SasStu @PrzemyslawKlys I couldn't make it for yesterday's community call, but I'm hoping to meet and talk with Steve Lee for the first time at the MVP summit next week. Let's just say I need more than just acknowledgement, I want actions to be taken to make sure it never happens again
English
0
0
0
26
Przemysław Kłys
Przemysław Kłys@PrzemyslawKlys·
@SasStu @awakecoding Anyways it's not all PowerShell fault, OneDrive is still a toy that you can't really control. Why can't you exclude folders? Specific files from sync and control it centrally.
English
1
0
1
50
Przemysław Kłys
Przemysław Kłys@PrzemyslawKlys·
@awakecoding Then there are modules which change across versions so much, like some deprecate entirely - we had this issue with Microsoft.Graph where they changed package names and there were conflicts. Its a tricky topic
English
1
0
0
35
Marc-André Moreau
Marc-André Moreau@awakecoding·
@PrzemyslawKlys And to avoid breaking stuff, I guess I could add a one-time warning the first time the clean up is about to run in UniGetUI, giving the option to cancel it, and opt-out of the feature which I honestly think the vast majority of users would rather have enabled by default
English
1
0
0
43
Marc-André Moreau
Marc-André Moreau@awakecoding·
@PrzemyslawKlys Think of it like an automatic docker prune but for PowerShell. Most people want the latest version + whatever is declared as dependencies in the modules that they use. The rest could be handled by saving explicit required versions in UniGetUI, and those wouldn't get cleaned up
English
2
0
0
47
Marc-André Moreau
Marc-André Moreau@awakecoding·
@PrzemyslawKlys Indeed, I understand why Install-Module goes the safe route and just litters your PSModulePath with a long trail of unused PowerShell modules. The problem remains, and there seems to be no easy way to clean things up in the safest way possible automatically
English
1
0
0
49
Przemysław Kłys
Przemysław Kłys@PrzemyslawKlys·
This topic is pretty complex. Modules can force specific dependencies, in specific versions, some things are compatible with one, but not the other, multiple versions you may want to test before you switch. There are many reasons. For clean approach (and some people wrote scripts for that) sure you can do that, but you would need to resolve all modules and all their dependencies, but then someone in their script may still have import-module -requiredversion and you break their script.
English
1
0
0
45
Marc-André Moreau
Marc-André Moreau@awakecoding·
I'd like to add an option in UniGetUI to uninstall other versions of a given PowerShell module, but ideally, I'd like to make the module update automatically remove old versions of the module, because that's what makes sense 99.9% of the time. It's an update, not a new install
English
0
0
2
169
Marc-André Moreau
Marc-André Moreau@awakecoding·
@ibuildthecloud Why not look for various inference providers for Kimi K2.5 on openrouter.ai? You'll realize you need to burn a looooot of tokens before buying the hardware to self-host the same model in its full form becomes worth it financially
English
2
0
5
1.5K
Darren Shepherd
Darren Shepherd@ibuildthecloud·
I'm so sick of dealing with token usage. Can I just buy an NVIDIA rack and put it in my garage? I am curious what it would cost to run something like kimi full strength. Obviously a lot, but still curious.
English
17
1
32
9.8K