chocolatey-licensed-issues icon indicating copy to clipboard operation
chocolatey-licensed-issues copied to clipboard

Allow overriding download url (which helps in the case of bad download locations)

Open ferventcoder opened this issue 9 years ago • 9 comments

This would make @rismoney so happy!

Also downloadUrlx64 so if you want to point to both.

If you only provide the first, it will use it no matter what. If you provide both, it will select by architecture.

ferventcoder avatar Oct 16 '15 15:10 ferventcoder

I looked over in chocolatey/chocolatey to find the old issue that mentioned this, but maybe it was just in email threads and/or discussion on other issues over on chocolatey/chocolatey.

ferventcoder avatar Oct 16 '15 15:10 ferventcoder

This would make @rismoney so happy!

The particular use case is this-

All my package binaries are currently fetching from an internal repo say: chocopackages.rismoney.com This makes all those packages non-portable. I would like to put in the URL a token, and have chocolatey insert the hostname location.

this way i could code all my packages w/o using chocopackages.rismoney.com and instead use the token.

This would go a long way towards open sourcing our packages, and have people be able to use them on their internal repos w/o modifying the chocolateyinstall.ps1 for their org.

rismoney avatar Oct 16 '15 20:10 rismoney

Rismoney, wouldn't you be able to do what you are currently describing using the PackageParameters input to the choco install/upgrade commands?

gep13 avatar Oct 16 '15 20:10 gep13

yes, but the key is i don't want to specify it on the command line. i imagine it could be contained within the xml config file.

rismoney avatar Oct 16 '15 22:10 rismoney

Can I use this with Chocolatey's feed? I'm having trouble with Fosshub links.

And yes, being able to set this in a config file would be nice.

i-give-up avatar Oct 17 '15 01:10 i-give-up

@rismoney said... but the key is i don't want to specify it on the command line.

Ah, I see what you are getting at. I like that idea, but I would see that as a separate issue to this one, which allows overriding of the URL. Great idea!

gep13 avatar Oct 17 '15 09:10 gep13

@i-give-up this is just an issue to track the work that needs to be done, and hasn't yet been implemented, but yes, the idea would be that you could use it on any package, regardless of where it is hosted.

gep13 avatar Oct 17 '15 09:10 gep13

@rismoney @gep13 yes, that is more about something businesses would take advantage of. :)

ferventcoder avatar Oct 17 '15 14:10 ferventcoder

This is going to be a trickle down feature, first available in pro+ editions and later available in open source.

ferventcoder avatar Jan 06 '17 20:01 ferventcoder