-
Notifications
You must be signed in to change notification settings - Fork 7
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
Is there a way to set ChocolateyGet's package source as trusted? #5
Comments
You are right. The register package source feature is not supported in the ChocolatetyGet. |
Thanks for the work on ChocolateyGet - its good to see the unification coming to windows package management
|
Just did a little more digging and understand that ChocolateyGet may be a gap filler I see you've posted a few times - are you contributing to the "official" Chocolatey-OneGet |
@KZeronimo, if I remember correctly, you can directly use the provider without needing to explicitly import. for example install-module ChocolateyGet I remember I added this feature in PackageManagement (OneGet) for WIn10 anniversary, Windows Server 2016, WMF 5.1. Or you can simply refresh the PackageManagement version by install-module PackageManagement -force. Looking at chocolatey-community/chocolatey-oneget#5, Rob seems to have time on to finish the Chocolatey-Oneget provider. |
Hi jianyunt |
@Gregoorio, Rob is working on the official Chocolatey-OneGet provider. For the ChocolateyGet, are saying you want to download packages from your local repo not from the https://www.chocolatey.org? |
jianyunt. Yes, I wrote to Rob about it. When will an official provider for powershell appear? |
So far we have 2 providers: The official provider, Chocolatey-OneGet provider will be from Rob who is saying he is working on it. If I add support to allow you register-packagesource in ChocolateyGet, that will resolve your problem? |
If it will be possible to register a local repository with chocolatey-get (which is supported, using commands register-packagesource...)I think it should be ok. I would rather use an official supported provider for powershell (not choco). |
@jianyunt, |
It will need time to implement add-packagesource and remove-packagesource in the ChocolateyGet code to support register-packagesource. I am tied up with other project right now. Thus my short answer is I won't have time to do so right now, but maybe later. Also I am open to take PR for anyone who can help on this. |
@jianyunt. I've contacted Microsoft about the release of an official chocolate provider. For the time being, Microsoft will not provide an official provider for Chocolatey. Is there a chance that this project will be implemented at all? |
@ferventcoder, Rob, do you have the answer to the above question from @Gregoorio? Long discussion here too: chocolatey-community/chocolatey-oneget#5 |
@jianyunt howdy - I can give it a shot. @Gregoorio I can understand your frustration waiting to see an official implementation. Microsoft did start one but only made a partially functional prototype (the current Chocolatey provider). The person we were originally going to work with left the team and wasn't able to continue working on this aspect. The other side of the coin is that we've been working in our open source channels at Chocolatey Software to find some community members that can assist us with this aspect. We prioritize nearly all of our work with our customers (likely Microsoft does similar here). Unfortunately OneGet/PackageManagement doesn't provide a means to upgrade (at least not a command like upgrade/update), nor do our current customers seek to add an additional layer into the mix - that means this doesn't fall into our prioritization schedule. If your organization feels this is extremely important, you have a few options:
If you are interested in the latter, please have someone in your organization reach out to us through the https://chocolatey.org website contact page. HTH |
It would be great to see this feature, I am missing this too. I have been implementing my own desired state configuration resource to install chocolaty packages up till now in the hope that this would get sorted out. PackageManagement and chocolaty seem like such a powerful combination I can not believe that you wouldn't priorities this, it seems like a match made in heaven. Anyway, would love it if you could, maybe I will try to contribute when I am back from holiday. But just having the ability to add a private package source to the chocolatyGet would be perfect, that provider seems to work very well, but I really need to be able to use some of our private chocolaty packages. |
This. In my opinion there isn't really one 'true' package management system yet, and MS did a good job of creating OneGet as a step towards it. With ChocolateyGet we are very close to just being able to fire up Powershell on a fresh installation and run over a script, wait, and some time later have a proper dev environment. Like on other OS. Fixing this issue would be one step closer. Then there's still proper Update-Package support, passing options to the installers (and/or choco.exe), and maybe some other things I'm missing (not sure how well Uninstall-Package does it's job?) |
Looking forward to it, since interacting with choco packages via PackageManagement seems so much more flexible. |
Is there an immediate answer to the original issue or marking chocolatey.org as a trusted source? |
You can use -force to avoid prompt for packages. e.g, install-package 7zip -ProviderName ChocolateyGet -verbose -force |
Is it currently possible to use private repositories with ChocolateyGet? |
This provider follows the syntax/protocol of the chocolatey.org. If your private repo is cloned from the chocolatey.org, then you can simply change the line 11 to point to your own repo. Then it should work. |
@jianyunt ouch. I thought that if someone set the sources in choco to internal, this would simply use whatever the default sources are set to. |
I missed implementation of a couple of methods Add-PackageSource and Remove-PackageSource in this provider to do so. As of 2017, I am tied up Azure cloudshell. I will finish up this one if I have time during my vacation. |
Or I guess I can add something like |
Would a plural |
Or |
Forked the project and added logic for PackageManagement sources proxying choco resources, borrowing heavily from @jianyunt's Microsoft MyAlbum sample provider. Choco sources can be added, removed, inspected, and referenced during installation via Main limitation I ran into is that My goal with this is to use pure PackageManagement DSC resources for setting and using internal repos so I can easily switch to using the official Chocolatey PackageManagement provider when/if it becomes available. |
@ethanbergstrom are you considering to submit a PR to merge your work here?
|
@jianyunt I'm interacting with chocolatey directly for source information. If you add a source through choco.exe, it will show up in It does continue to use the choco source I'll go ahead and open a PR if you'd like to review further. |
Thanks @ethanbergstrom. I will review your PR. |
FYI, I updated the PR with a few other things I've found in usage, namely being able to pass args/params to packages and their dependencies while not breaking |
Bump. Any update on when this PR might get merged & rolled out? |
Been using my fork for the last couple months in prod against our private package repos. |
Sorry I have been tied up with my other projects. @ethanbergstrom and @sgryphon, my understanding is we are ready for merging the PR #10? If so, I will merge it and update the module in the PowerShellGallery.com. |
I think it's ready. |
With the current pull request still open, I've published a new module called Chocolatier on PSGallery that's essentially refactored ChocolateyGet with the multi-source logic, DSC compatibility, and a few others odds and ends for those who need those additional features without having to manually download and package my fork from GitHub, though my preference would be to merge these changes into the original project. |
Remove necessary line from readme
Using
Get-PackageSource
doesn't show chocolateyget's source. Every time I install a package it asks about the fact thathttps://www.chocolatey.org
is untrusted.The text was updated successfully, but these errors were encountered: