-
-
Notifications
You must be signed in to change notification settings - Fork 814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with DSC and Chocolaty install #579
Comments
Interesting... this is similar to #381 and http://disq.us/p/1fqmw4q. I assume you're installing the latest version (0.7.3) with the latest version of Chocolatey? Unfortunately that stack trace doesn't reveal where we're trying to bind null to Can you tell me anything else about environment where you're trying to install? I'm afraid I've never used Azure DSC. Are you able to manually run |
If i manually run the chocolatey install it runs fine it seems that its only via dsc that is having the issue maybe because via the end user process it assumes the path because its the user logged in running it vs the nt authority user. I would maybe see in your code where you are calling a Path variable and see what it normally calls and make sure it has a value ? yes i have the latest version of chocolatey and trying to install poshgit 0.7.3 |
For now while this gets looked into i created a work around in my dsc configration for anyone else that is having this issue with chocolately right now.
|
@sernone I just pushed v0.7.3.1 to the Chocolatey gallery. Please let me know if this doesn't resolve your issue. (I added more diagnostic messages, too, so please post a new log if there's a failure. |
Note also that PSGallery has a prerelease for a more current version of posh-git: https://www.powershellgallery.com/packages/posh-git/1.0.0-beta2. I'd still appreciate confirmation that installing v0.7.3.1 is fixed, but you might stick with PSGallery to get access to our new features sooner. |
I am testing it now just had to update the dsc config and apply it to my test machine. I'll will update you soon with if it fixed the issue and if it not what the logs look like. I still prefer chocolately so i'd much rather use that.
|
@dahlbyk Thanks for the fix it did install this time however it seems that it didn't properly load the module, if i try to list that module in powershell after a refreshenv it doesn't show up but according to choco it installed perfectly with 1 warning about the psmodulepath which might be why its not showing up
|
Correct. Chocolatey install currently uses In the meantime you'll need to import the |
@dahlbyk Thanks for all this , that has fixed the issue it might have fixed others as well but as for now dsc doesn't have a great way to import a psd1 file without a bunch of config that seems unnecessary for now since the psgallery one its working. i'll keep an eye out for upcoming choco releases though for sure. Thanks again |
System Details
Issue Description
I am experiencing a problem with installing this package via chocolaty and azure dsc. The logs are below
The text was updated successfully, but these errors were encountered: