Comments (6)
Thanks!
Yeah, I gave a thumbs up to PowerShell/Crescendo#63 before I submitted this issue because I figured that was the case :)
from foil.
Huh, I'm not able to reproduce either the Office or Sysinternals issue now. I my best guess is I might have been using the built-in PackageMangement resource instead of PSDscResources/PackageManagement 1.4.7
The warning I was getting came from
Set-EnvironmentVariable.ps1
Called by (semi stack trace here):
Install-ChocolateyPath.ps1
Sysinternals/chocolateyInstall.ps1
I think the updated regex will be much more reliable either way.
Thanks again! And, kudos on a great name for the module.
from foil.
Hey @dbaileyut
Always happy to see a fellow DSC+ChocolateyGet user!
I think this goes back to PowerShell/Crescendo#63, where Cresendo doesn't have great any error handling, so I used something (very) simple to fill the gap.
I'll try to do some research as to what actual 'failure' output from Chocolatey looks like and write some better regex for it.
In the meantime, if it's an absolute blocker and you have an immediate need, I might suggest downgrading ChocolateyGet to v2.1.1, which doesn't use Foil and still uses exit code logic for determining failures, but should be functionally equivalent and still fixes an urgent issue (in a different way) introduced by a Chocolatey.org repository change described here: jianyunt/ChocolateyGet#24 (comment)
from foil.
Would you be able to provide a command example for sysinternals that yielded the "fail" output? I actually happen to use sysinternals with a custom install directory argument in my tests, and am not seeing the same behavior.
I did find a very helpful example of "uniquely error-like" text in chocolatey-community/chocolatey-packages#1608 reported to the Chocolatey core package maintainers repo, so I can use googlechrome v87.0.4280.141 to test for what valid error text looks like.
from foil.
Here's the new regex, I think it should work pretty well:
Line 109 in 577c8be
Version 0.0.4 is out on PowerShell Gallery, and I think that should fix your issue. Can you try upgrading Foil to see if that fixes your issue? I wasn't able to reproduce with sysinternals, and Office 365 takes so long to install on my slower internet, I got impatient and gave up :)
from foil.
Awesome! I'll try it out in just a bit and report back on the sysinternals warning too.
from foil.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from foil.