Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Limit Packages to Local Repo or Feed

    Scheduled Pinned Locked Moved Support
    sourceprogetpackagesfeeds
    5 Posts 1 Posters 29 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      I setup a connector for a feed I created to Chocolatey.org so I could pull packages from the public repo at Chocolatey.org into my local feed, but when I do "choco list" I see EVERY package from Chocolatey.org vs. just the two I pulled in. Ideally, I just want to see what's in our local repo, as we'd disable the internet repos and only use what we have in our local repo. Is there a way to set this up?

      Disclosure: I am very new to ProGet and Chocolatey, so I may have something setup incorrectly.

      Product: ProGet
      Version: 4.1.3

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        You can just delete the connector to chocolately.org then, and then those packages won't show up in the feed.

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          Before I go that route, where I delete the connector, I tried disabling the feeds in ProGet to both the default (to Nuget.org) and the feed I created, which had just two package in there.

          From the client side, if I do "choco source list" I see that chocolatey.org is disabled and only my feed is enabled. Next I do a search for a package, "choco search notepadplusplus" and it returns 5 packages.

          choco search notepadplusplus
          notepadplusplus 6.9.2
          jivkok.dev1 1.1.0.8 - Possibly broken
          notepadplusplus.commandline 6.9.2 [Approved] Downloads cached for licensed users

          notepadplusplus.install 6.9.2
          Notepadplusplus.Settings 1.0.0.20141029 [Approved] - Possibly broken
          5 packages found.

          ...can anyone tell me what I'm doing wrong? I expected no results.

          Thanks in advance!
          Kevin

          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            Update: I went ahead and updated the feed to remove the connector as suggested. Problem solved, but it was odd behavior I didn't expect and I don't like that.

            Moving on though. Another thing that has me perplexed, is seeing an external URL in the console for installing a package. I have only my ProGet feed setup as a source in the Chocolatey client on a particular host but looking through the NuGet package it looks like "notepadplusplus" has a dependency on "notepadplusplus.install.6.9.2" --- I guess my question is, how do you maintain proper source control? If a package can download dependencies on packages which I don't have, but exist on the internet, then there seems to not be any real control over the source of packages.

            Someone please correct me if I am wrong?

            Thanks in advance,
            Kevin Beattie

            1 Reply Last reply Reply Quote 0
            • ? This user is from outside of this forum
              Guest
              last edited by

              Chocolately packages are, essentially, nothing more than a powershell script that downloads and runs an installer from some url on the internet. It would be virtually impossible to inspect arbitrary powershell scripts and determine what they would download when run, and then download/proxy those installers.

              So, if you want full control over all aspects of the chocolatey packages (including the installers that are downloaded), you will just have to create your own based on the contents of the open-source packages.

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 1 / 1
              • First post
                Last post
              Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation