You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.
au_GalleryUrl assumes all chocolatey packages are hosted in a feed called packages. So in Update-Package.ps1 it is referenced like this:
if ( !$au_GalleryUrl ) { $au_GalleryUrl='https://chocolatey.org' }
$choco_url="$au_GalleryUrl/packages/{0}/{1}"-f$global:Latest.PackageName,$package.RemoteVersion
When packages are hosted in an internal feed this is not always the case; as when the internal feed is in something like Inedo's Proget. This could be fixed by changing the code as follows:
if ( !$au_GalleryUrl ) { $au_GalleryUrl='https://chocolatey.org/packages' }
$choco_url="$au_GalleryUrl/{0}/{1}"-f$global:Latest.PackageName,$package.RemoteVersion
The text was updated successfully, but these errors were encountered:
It occurs to me that the above proposal would force other users, if anyone is using this, to modify their $au_GallerUrl config. It's possible to avoid that by adding another global variable, perhaps $au_GalleryFeed...
if ( !$au_GalleryUrl ) { $au_GalleryUrl='https://chocolatey.org' }
if (!$au_GalleryFeed) { $au_GalleryFeed='packages' }
$choco_url="$au_GalleryUrl/$au_GalleryFeed/{0}/{1}"-f$global:Latest.PackageName,$package.RemoteVersion
au_GalleryFeed in essence is just a holder for the middle part of the url. If it isn't defined then it behaves as it does today.
I've also run into this recently while using Artifactory's NuGet repo for chocolatey packages. I've worked around it in my case by setting the au_PushUrl env var in the update.ps1 script for each package to push to the packages/package_name/ path:
au_GalleryUrl assumes all chocolatey packages are hosted in a feed called packages. So in Update-Package.ps1 it is referenced like this:
When packages are hosted in an internal feed this is not always the case; as when the internal feed is in something like Inedo's Proget. This could be fixed by changing the code as follows:
The text was updated successfully, but these errors were encountered: